Skip to content

Commit

Permalink
GWT: Initial call to set viewport size fails for resizable application (
Browse files Browse the repository at this point in the history
  • Loading branch information
MrStahlfelge committed Dec 26, 2020
1 parent 646d5e1 commit f4d5f1d
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -90,7 +90,7 @@ public GwtGraphics (Panel root, GwtApplicationConfiguration config) {
attributes.setPreserveDrawingBuffer(config.preserveDrawingBuffer);

context = WebGLRenderingContext.getContext(canvas, attributes);
context.viewport(0, 0, config.width, config.height);
context.viewport(0, 0, getWidth(), getHeight());
this.gl = config.useDebugGL ? new GwtGL20Debug(context) : new GwtGL20(context);

String versionString = gl.glGetString(GL20.GL_VERSION);
Expand Down

0 comments on commit f4d5f1d

Please sign in to comment.