mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 11:28:05 +02:00
mesa: Require gen'd names in glBeginQuery on ES 3.0.
Only legacy OpenGL allows the use of non-gen'd names. Core profiles and ES 3 both require the use of glGenQueries(). Note that BeginQuery doesn't exist in ES 1 or ES 2. Fixes es3conform's occlusion_query_invalid_beginquery test. Reviewed-and-tested-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
c6ed42a89e
commit
bbda7d65a9
1 changed files with 1 additions and 1 deletions
|
|
@ -321,7 +321,7 @@ _mesa_BeginQueryIndexed(GLenum target, GLuint index, GLuint id)
|
||||||
|
|
||||||
q = _mesa_lookup_query_object(ctx, id);
|
q = _mesa_lookup_query_object(ctx, id);
|
||||||
if (!q) {
|
if (!q) {
|
||||||
if (ctx->API == API_OPENGL_CORE) {
|
if (ctx->API != API_OPENGL) {
|
||||||
_mesa_error(ctx, GL_INVALID_OPERATION,
|
_mesa_error(ctx, GL_INVALID_OPERATION,
|
||||||
"glBeginQuery{Indexed}(non-gen name)");
|
"glBeginQuery{Indexed}(non-gen name)");
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue