diff --git a/shell/android/src/com/reicast/emulator/emu/GL2JNIView.java b/shell/android/src/com/reicast/emulator/emu/GL2JNIView.java index ae64512ad..c0eae8084 100644 --- a/shell/android/src/com/reicast/emulator/emu/GL2JNIView.java +++ b/shell/android/src/com/reicast/emulator/emu/GL2JNIView.java @@ -564,7 +564,8 @@ public class GL2JNIView extends GLSurfaceView public void onSurfaceChanged(GL10 gl,int width,int height) { - JNIdc.rendinit(sWidth,sHeight); + gl.glViewport(0, 0, width, height); + JNIdc.rendinit(width,height); } public void onSurfaceCreated(GL10 gl,EGLConfig config)