Skip to content

Commit

Permalink
Fix Emulator with api30 usage
Browse files Browse the repository at this point in the history
If other emulators run into problem, we need a fix
  • Loading branch information
hannesa2 committed Oct 18, 2021
1 parent 63277b1 commit 7b09caf
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@ object PLOpenGLSupport {
if (sGLVersion == null) {
val version = gl.glGetString(GL10.GL_VERSION)
sGLVersion = if (isEmulator()) {
(if (getAndroidVersion() < 3)
PLOpenGLVersion.PLOpenGLVersion1_0
else
PLOpenGLVersion.PLOpenGLVersion1_1)
PLOpenGLVersion.PLOpenGLVersion1_1
} else {
when {
version.contains("1.0") -> PLOpenGLVersion.PLOpenGLVersion1_0
Expand Down

0 comments on commit 7b09caf

Please sign in to comment.