Commit 1ea92f8a by Nicolas Capens Committed by Nicolas Capens

Fix comparing GL texture target against the GL enum (not EGL enum).

BUG=18203563 Change-Id: If308293d51f7c2bbec4ee805b7efcdda3e2227b8 Reviewed-on: https://swiftshader-review.googlesource.com/1303Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com> Tested-by: 's avatarNicolas Capens <nicolascapens@google.com>
parent 4104146a
...@@ -2412,7 +2412,7 @@ EGLenum Context::validateSharedImage(EGLenum target, GLuint name, GLuint texture ...@@ -2412,7 +2412,7 @@ EGLenum Context::validateSharedImage(EGLenum target, GLuint name, GLuint texture
{ {
Texture *texture = getTexture(name); Texture *texture = getTexture(name);
if(!texture || texture->getTarget() != target) if(!texture || texture->getTarget() != GL_TEXTURE_2D)
{ {
return EGL_BAD_PARAMETER; return EGL_BAD_PARAMETER;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment