html: enable std derivatives, seems not to be default with 'experimental-webgl' context

This commit is contained in:
Hannes Janetzek 2013-07-25 22:36:21 +02:00
parent 406106e482
commit 1ce6359d7a

View File

@ -73,6 +73,9 @@ public class GwtGraphics implements Graphics {
context = WebGLRenderingContext.getContext(canvas, attributes); context = WebGLRenderingContext.getContext(canvas, attributes);
context.viewport(0, 0, config.width, config.height); context.viewport(0, 0, config.width, config.height);
// this actually *enables* the option to use std derivatives in shader..
context.getExtension("OES_standard_derivatives");
this.gl = config.useDebugGL ? new GwtGL20Debug(context) : new GwtGL20(context); this.gl = config.useDebugGL ? new GwtGL20Debug(context) : new GwtGL20(context);
Window.addResizeHandler(new ResizeHandler() { Window.addResizeHandler(new ResizeHandler() {