forked from joejulian/gio
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user