This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

glGetShaderiv reports failed compilation, glGetShaderInfoLog is empty using OpenGL ES Emulator

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.

+ glRenderer 0x0000000000234550 "Mali OpenGL ES Emulator 2.0" const char *
+ glVendor 0x000007fee8bd1a00 "ARM Ltd" const char *
+ glslVer 0x000007fee8ba1a40 "OpenGL ES GLSL ES 3.00" const char *
+ glVer 0x000007fee8ba1a58 "OpenGL ES 2.0" const char *

Thanks!

Parents Reply Children
No data