oizma / angleproject

Automatically exported from code.google.com/p/angleproject
Other
0 stars 0 forks source link

glGetActiveUniform returns incorrect type if sampler2D/samplerCUBE is used in shader #28

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Write a simple shader which has uniforms of type sampler2D or samplerCUBE
2. Compile the shader
3. When executing function glGetActiveUniform (GLuint program, GLuint index, 
GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name);
   The type for specified uniforms will be GL_INT, which is incorrect.

What is the expected output? What do you see instead?
   The type for specified uniforms should be GL_SAMPLER_2D or GL_SAMPLER_CUBE accordingly

What version of the product are you using? On what operating system?
   I'm using Angle project with revision 414

Please provide any additional information below.
   Attached modified Simple_VertexShader project

Original issue reported on code.google.com by tom...@gmail.com on 9 Sep 2010 at 10:48

Attachments:

GoogleCodeExporter commented 9 years ago
I believe this is the same issue noted by James on the mailing list a while 
back.  He had contributed a patch, but it caused a few regressions.  

We'll look into wrapping that up.

Original comment by dan...@transgaming.com on 13 Sep 2010 at 9:06

GoogleCodeExporter commented 9 years ago
This should be fixed in r421.

Original comment by dan...@transgaming.com on 15 Sep 2010 at 3:53