Revision 6f3024ae
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/examples/aroundtheworld/AroundTheWorldSurfaceViewPicker.java | ||
---|---|---|
21 | 21 |
|
22 | 22 |
import android.content.Context; |
23 | 23 |
import android.opengl.GLSurfaceView; |
24 |
import android.os.Build; |
|
25 | 24 |
import android.util.AttributeSet; |
26 | 25 |
import android.view.MotionEvent; |
27 | 26 |
|
... | ... | |
41 | 40 |
if(!isInEditMode()) |
42 | 41 |
{ |
43 | 42 |
setEGLContextClientVersion(2); |
44 |
|
|
45 |
if( Build.FINGERPRINT.startsWith("generic") ) |
|
46 |
{ |
|
47 |
setEGLConfigChooser(8, 8, 8, 8, 16, 0); |
|
48 |
} |
|
49 |
|
|
50 | 43 |
mRenderer = new AroundTheWorldRendererPicker(); |
51 | 44 |
setRenderer(mRenderer); |
52 | 45 |
} |
Also available in: Unified diff
Fix a lot of Lint warnings in the apps.