Revision 0c8e26ea
Added by Leszek Koltunski about 4 years ago
src/main/java/org/distorted/library/main/DistortedLibrary.java | ||
---|---|---|
116 | 116 |
private static int mGLSL; |
117 | 117 |
private static String mGLSL_VERSION; |
118 | 118 |
private static boolean mOITCompilationAttempted; |
119 |
private static int mMaxTextureSize; |
|
119 |
private static int mMaxTextureSize = Integer.MAX_VALUE;
|
|
120 | 120 |
|
121 | 121 |
////////////////////////////////////////////////////////////////////////////////////////////// |
122 | 122 |
/// MAIN PROGRAM /// |
Also available in: Unified diff
Bugfix: we initially need to set the maxTextureSize to MAX_INT, because otherwise early (i.e. before a call to onSurfaceCreated) calls to setTexture() will fail.