Revision 525699f4
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/examples/effectqueue/EffectQueueSurfaceView.java | ||
---|---|---|
87 | 87 |
{ |
88 | 88 |
setFocusable(true); |
89 | 89 |
setFocusableInTouchMode(true); |
90 |
|
|
91 | 90 |
setEGLContextClientVersion(2); |
92 |
|
|
93 |
if( Build.FINGERPRINT.startsWith("generic") ) // when running on the emulator, insert a magic line that is |
|
94 |
{ // supposed to cure the 'no config chosen' crash on emulator startup |
|
95 |
setEGLConfigChooser(8, 8, 8, 8, 16, 0); |
|
96 |
} |
|
97 |
|
|
91 |
|
|
98 | 92 |
mRenderer = new EffectQueueRenderer(this); |
99 | 93 |
setRenderer(mRenderer); |
100 | 94 |
|
Also available in: Unified diff
Simplify SurfaceViews