Fix immersive mode & gl resize

- Pass raw width & height to internal C/C++ code, so that resizes propagate
- Fixes input button & image missalignment on 4.4+
This commit is contained in:
Stefanos Kornilios Mitsis Poiitidis 2014-07-24 13:32:15 +03:00 committed by TwistedUmbrella
parent dada5fb520
commit 5e66c99233
1 changed files with 2 additions and 1 deletions

View File

@ -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)