glText
glText copied to clipboard
Text will not render
_gltText2DShader = glCreateProgram(); this line is generate valid handle(example 3). but in gltBeginDraw, glUseProgram's handle is 0(INVALID_HANDLE).
my os : sonoma osx i modified source shader code for gles 3-iphone -ipad:
Remove the "glBindFragDataLocation" line. This is not necessary and not supported. Change the shaders to use #version 300 es Specify the float precision in the fragment shader by adding this line of code: precision mediump float; Do not initialize the uniform vec4 color; in the fragment color (not supported).
i traced all source code. all shader compilation , handles, locations okey. but in gltBeginDraw, glUseProgram's handle turn 0(INVALID_HANDLE).