Revision 525699f4
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/examples/dynamic/DynamicSurfaceView.java | ||
---|---|---|
109 | 109 |
{ |
110 | 110 |
setFocusable(true); |
111 | 111 |
setFocusableInTouchMode(true); |
112 |
|
|
113 | 112 |
setEGLContextClientVersion(2); |
114 |
|
|
115 |
if( Build.FINGERPRINT.startsWith("generic") ) // when running on the emulator, insert a magic line that is |
|
116 |
{ // supposed to cure the 'no config chosen' crash on emulator startup |
|
117 |
setEGLConfigChooser(8, 8, 8, 8, 16, 0); |
|
118 |
} |
|
119 |
|
|
120 | 113 |
DynamicRenderer mRenderer = new DynamicRenderer(this); |
121 | 114 |
setRenderer(mRenderer); |
122 | 115 |
} |
Also available in: Unified diff
Simplify SurfaceViews