From 25e5dd3951e8cc7827761ea8ba2f5206b354d855 Mon Sep 17 00:00:00 2001 From: Matthew Kosarek Date: Tue, 23 Mar 2021 21:57:51 -0400 Subject: Working WebGl abstraction layer and build process --- frontend/shared_cpp/WebglContext.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'frontend/shared_cpp/WebglContext.h') 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(); }; -- cgit v1.2.1