Revision b0ac5b29
Added by Leszek Koltunski over 2 years ago
src/main/java/org/distorted/library/main/DistortedScreen.java | ||
---|---|---|
126 | 126 |
mDebugAllocated = true; |
127 | 127 |
debugString = ""; |
128 | 128 |
|
129 |
if( mDebugWidth<=0 || mDebugHeight<=0 ) |
|
130 |
{ |
|
131 |
mDebugWidth = (int)(mWidth*DEBUG_SCR_FRAC); |
|
132 |
mDebugHeight= (int)(mWidth*DEBUG_SCR_FRAC*DEBUG_FRAC); |
|
133 |
} |
|
134 |
|
|
129 | 135 |
debugBitmap = Bitmap.createBitmap( mDebugWidth, mDebugHeight, Bitmap.Config.ARGB_8888); |
130 | 136 |
debugMesh = new MeshQuad(); |
131 | 137 |
debugTexture = new DistortedTexture(); |
Also available in: Unified diff
Important bugfix for the 'cube disappears when its mesh gets changed from nice to simple'.
The reason why recreating an InternalBuffer from within the 'create()' function doesn't work but doing the same from 'createImmediately' does work is not fully understood. Nevertheless the fix is correct in the sense that it
a) for sure does fix the (repeatably reproducible) bug
b) IMHO carries zero risk of introducing any problems.