ui/app/internal/gpu: check for GL_EXT_disjoint_timer_query_webgl2

GL_EXT_disjoint_timer_query_webgl2 is the WebGL 2 counterpart to
the WebGL 1 GL_EXT_disjoint_timer_query extension.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-05-13 19:50:26 +02:00
parent 90d2174090
commit 32c525f7fd
+2 -1
View File
@@ -48,8 +48,9 @@ func newContext(glctx gl.Context) (*context, error) {
if err != nil {
return nil, err
}
hasTimers := hasExtension(exts, "GL_EXT_disjoint_timer_query_webgl2") || hasExtension(exts, "GL_EXT_disjoint_timer_query")
ctx.caps = caps{
EXT_disjoint_timer_query: hasExtension(exts, "GL_EXT_disjoint_timer_query"),
EXT_disjoint_timer_query: hasTimers,
floatTriple: floatTriple,
alphaTriple: alphaTripleFor(ver),
srgbaTriple: srgbaTriple,