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:
parent
dada5fb520
commit
5e66c99233
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue