Skip to content

How can I enable webGL extension? #17129

Answered by tuket
tuket asked this question in Q&A
Discussion options

You must be logged in to vote

Found my solution here: https://stackoverflow.com/questions/26736126/enable-webgl-extensions-from-asm-js-emscripten

#ifdef __EMSCRIPTEN__
	const EMSCRIPTEN_WEBGL_CONTEXT_HANDLE webGlContext = emscripten_webgl_get_current_context();
	const EM_BOOL enabledOk = emscripten_webgl_enable_extension(webGlContext, "EXT_color_buffer_float");
#endif

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tuket
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant