Permalink
Browse files

Merge pull request #150 from spencerelliott/GLES2

Added detection for edit mode in RenderSurfaceView.
  • Loading branch information...
2 parents 72db5f1 + e0a6db0 commit 9ae632b68af74e957a4c4b519b74f7830ba5fdfd Nicolas Gramlich committed Jul 17, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/org/andengine/opengl/view/RenderSurfaceView.java
@@ -61,6 +61,10 @@ public ConfigChooser getConfigChooser() throws IllegalStateException {
*/
@Override
protected void onMeasure(final int pWidthMeasureSpec, final int pHeightMeasureSpec) {
+ if(this.isInEditMode()) {
+ super.onMeasure(pWidthMeasureSpec, pHeightMeasureSpec);
+ return;
+ }
this.mEngineRenderer.mEngine.getEngineOptions().getResolutionPolicy().onMeasure(this, pWidthMeasureSpec, pHeightMeasureSpec);
}

0 comments on commit 9ae632b

Please sign in to comment.