We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent daa7304 commit c24693cCopy full SHA for c24693c
gl/egl.go
@@ -11,6 +11,11 @@ package gl
11
// #cgo LDFLAGS: -lEGL
12
import "C"
13
14
+const (
15
+ versionES2 = "GL_ES_2_0"
16
+ versionES3 = "GL_ES_3_0"
17
+)
18
+
19
func init() {
20
display := C.eglGetDisplay(C.EGL_DEFAULT_DISPLAY)
21
@@ -43,12 +48,12 @@ func init() {
43
48
44
49
context := C.eglCreateContext(display, config, C.EGLContext(C.EGL_NO_CONTEXT), &attributes[0])
45
50
if context == nil {
46
- version = "GL_ES_2_0"
51
+ version = versionES2
47
52
53
return
54
}
55
56
C.eglDestroyContext(display, context)
57
- version = "GL_ES_3_0"
58
+ version = versionES3
59
0 commit comments