Skip to content

Commit aee804c

Browse files
authored
Fix blank screen issue [#18] (#26)
1 parent cce9361 commit aee804c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

app/src/main/java/com/bytehamster/flowitgame/GLRenderer.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ public void onSurfaceChanged(GL10 gl, int width, int height) {
8383

8484
gl.glBindTexture(GL10.GL_TEXTURE_2D, textures[0]);
8585
gl.glMatrixMode(GL10.GL_PROJECTION);
86+
gl.glLoadIdentity();
8687
GLU.gluOrtho2D(gl, 0, width, 0, height);
8788
gl.glMatrixMode(GL10.GL_MODELVIEW);
8889
debugOutput(gl);

0 commit comments

Comments
 (0)