Hey,
I'm having some troubles getting shaders to compile using the OpenGL ES emulator
"precision mediump float;\n" "attribute vec3 inPosition;\n" "attribute vec2 inTexCoords;\n" "varying vec4 Position;\n" "varying vec2 TexCoords;\n" "uniform mat4 modelMatrix;\n" "uniform mat4 viewMatrix;\n" "uniform mat4 projMatrix;\n" "void main()\n" "{\n" " mat4 MVP = projMatrix * viewMatrix * modelMatrix;\n" " Position = MVP * vec4(inPosition, 1.0);\n" " TexCoords = inTexCoords;\n" " gl_Position = Position;\n" "}\n");
This basic shader compiles if I run it on my actual Android device using GLES, however when using the emulator glGetShaderiv reports that the compilation failed but glGetShaderInfoLog returns an empty log.
Is there anything I can do to try and find out why this is failing? I've attached a table of the values I've extracted from glGetString() for reference.
Thanks!
A fair point and duly noted, just trying to get things running first but that'll be the first thing to go .
I'm running Windows 7, Geforce GTX 780, Driver 347.25.
I could attach a DxDiag if that helps?
I tried simpler shaders and saw the same result.
Thanks