html: enable std derivatives, seems not to be default with 'experimental-webgl' context
This commit is contained in:
parent
406106e482
commit
1ce6359d7a
@ -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() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user