aboutsummaryrefslogtreecommitdiff
path: root/sokol_app.h
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2019-07-11 19:17:54 +0200
committerAndre Weissflog <floooh@gmail.com>2019-07-11 19:17:54 +0200
commit6a17e55ddae05b1ed89ea1d4325bd31eb034377e (patch)
tree050df838fba59549ab4ab008d64f1fe17458baa1 /sokol_app.h
parent1dde6a20860e86c96572bb65d8145f1d0360f132 (diff)
sokol_app.h emscripten: enable the WEBKIT_WEBGL_compressed_texture_pvrtc extension
Diffstat (limited to 'sokol_app.h')
-rw-r--r--sokol_app.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sokol_app.h b/sokol_app.h
index ae4abb43..a47c0d2f 100644
--- a/sokol_app.h
+++ b/sokol_app.h
@@ -2569,6 +2569,10 @@ _SOKOL_PRIVATE void _sapp_run(const sapp_desc* desc) {
_sapp.gles2_fallback = true;
}
emscripten_webgl_make_context_current(ctx);
+
+ /* some WebGL extension are not enabled automatically by emscripten */
+ emscripten_webgl_enable_extension(ctx, "WEBKIT_WEBGL_compressed_texture_pvrtc");
+
_sapp.valid = true;
emscripten_set_mousedown_callback(_sapp.html5_canvas_name, 0, true, _sapp_emsc_mouse_cb);
emscripten_set_mouseup_callback(_sapp.html5_canvas_name, 0, true, _sapp_emsc_mouse_cb);