summaryrefslogtreecommitdiff
path: root/frontend/shared_cpp/WebglContext.h
diff options
context:
space:
mode:
authorMatthew Kosarek <mattkae@protonmail.com>2021-03-23 21:57:51 -0400
committerMatthew Kosarek <mattkae@protonmail.com>2021-03-23 21:57:51 -0400
commit25e5dd3951e8cc7827761ea8ba2f5206b354d855 (patch)
tree6cea74cdcf8c366b279c357c0403ddcb7f841695 /frontend/shared_cpp/WebglContext.h
parentc36d05d5aed2f8f7c6342b174692146e2d11c386 (diff)
Working WebGl abstraction layer and build process
Diffstat (limited to 'frontend/shared_cpp/WebglContext.h')
-rw-r--r--frontend/shared_cpp/WebglContext.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/shared_cpp/WebglContext.h b/frontend/shared_cpp/WebglContext.h
index cf9cce2..c8a9480 100644
--- a/frontend/shared_cpp/WebglContext.h
+++ b/frontend/shared_cpp/WebglContext.h
@@ -15,7 +15,7 @@ struct WebglContext {
attrs.majorVersion = 3;
attrs.minorVersion = 0;
- context = emscripten_webgl_create_context( "#wasm_canvas", &attrs );
+ context = emscripten_webgl_create_context(query, &attrs);
makeCurrentContext();
};