is this a bug in Scene.java?

  ... in the unlikely case you discovered a bug, post it here.

is this a bug in Scene.java?

Postby nxnwsoftware » Fri Feb 17, 2012 3:26 pm

I'm not sure if this is an issue or not, but the code formatting looks like there may be an "else" missing from this method on line 16 below.

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.         @Override
  2.         protected void onManagedDraw(final GLState pGLState, final Camera pCamera) {
  3.                 final Scene childScene = this.mChildScene;
  4.  
  5.                 if(childScene == null || !this.mChildSceneModalDraw) {
  6.                         if(this.mBackgroundEnabled) {
  7.                                 pGLState.pushProjectionGLMatrix();
  8.  
  9.                                 pCamera.onApplySceneBackgroundMatrix(pGLState);
  10.                                 pGLState.loadModelViewGLMatrixIdentity();
  11.  
  12.                                 this.mBackground.onDraw(pGLState, pCamera);
  13.  
  14.                                 pGLState.popProjectionGLMatrix();
  15.                         }
  16.  
  17.                         {
  18.                                 pGLState.pushProjectionGLMatrix();
  19.  
  20.                                 this.onApplyMatrix(pGLState, pCamera);
  21.                                 pGLState.loadModelViewGLMatrixIdentity();
  22.  
  23.                                 super.onManagedDraw(pGLState, pCamera);
  24.  
  25.                                 pGLState.popProjectionGLMatrix();
  26.                         }
  27.                 }
  28.  
  29.                 if(childScene != null) {
  30.                         childScene.onDraw(pGLState, pCamera);
  31.                 }
  32.         }
Parsed in 0.033 seconds, using GeSHi 1.0.8.4
nxnwsoftware
 
Posts: 96
Joined: Wed Jan 11, 2012 1:01 am
Location: DFW Area, Texas, USA

Re: is this a bug in Scene.java?

Postby nxnwsoftware » Fri Feb 17, 2012 10:34 pm

nevermind - sticking an "else" in there causes some very weird issues
nxnwsoftware
 
Posts: 96
Joined: Wed Jan 11, 2012 1:01 am
Location: DFW Area, Texas, USA


Return to Bugs

Who is online

Users browsing this forum: No registered users and 1 guest