glGetFragDataLocation implementation
Implemented glGetFragDataLocation. There's very little coverage for
this function in dEQP, but the one test that uses it passes.
Change-Id: I6cfc93d7eaad54f23c922e45dafee9cba3401c83
Note: Chromium's ES3 path requires this function to be implemented.
Reviewed-on: https://swiftshader-review.googlesource.com/11728
Tested-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
diff --git a/src/OpenGL/libGLESv2/libGLESv3.cpp b/src/OpenGL/libGLESv2/libGLESv3.cpp
index 642e5bb..f995d2d 100644
--- a/src/OpenGL/libGLESv2/libGLESv3.cpp
+++ b/src/OpenGL/libGLESv2/libGLESv3.cpp
@@ -2280,11 +2280,6 @@
es2::Context *context = es2::getContext();
- if(strstr(name, "gl_") == name)
- {
- return -1;
- }
-
if(context)
{
es2::Program *programObject = context->getProgram(program);
@@ -2305,9 +2300,10 @@
{
return error(GL_INVALID_OPERATION, -1);
}
+
+ return programObject->getFragDataLocation(name);
}
- UNIMPLEMENTED();
return -1;
}