diff options
-rw-r--r-- | src/mesa/main/externalobjects.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/externalobjects.c b/src/mesa/main/externalobjects.c index 8f31ba4c354..463debd268a 100644 --- a/src/mesa/main/externalobjects.c +++ b/src/mesa/main/externalobjects.c @@ -809,7 +809,7 @@ _mesa_ImportMemoryFdEXT(GLuint memory, } if (handleType != GL_HANDLE_TYPE_OPAQUE_FD_EXT) { - _mesa_error(ctx, GL_INVALID_VALUE, "%s(handleType=%u)", func, handleType); + _mesa_error(ctx, GL_INVALID_ENUM, "%s(handleType=%u)", func, handleType); return; } @@ -836,7 +836,7 @@ _mesa_ImportSemaphoreFdEXT(GLuint semaphore, } if (handleType != GL_HANDLE_TYPE_OPAQUE_FD_EXT) { - _mesa_error(ctx, GL_INVALID_VALUE, "%s(handleType=%u)", func, handleType); + _mesa_error(ctx, GL_INVALID_ENUM, "%s(handleType=%u)", func, handleType); return; } |