glText icon indicating copy to clipboard operation
glText copied to clipboard

Text will not render

Open mumin16osx opened this issue 1 year ago • 2 comments

_gltText2DShader = glCreateProgram(); this line is generate valid handle(example 3). but in gltBeginDraw, glUseProgram's handle is 0(INVALID_HANDLE).

mumin16osx avatar Jan 13 '24 17:01 mumin16osx

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).

mumin16osx avatar Jan 13 '24 17:01 mumin16osx

i traced all source code. all shader compilation , handles, locations okey. but in gltBeginDraw, glUseProgram's handle turn 0(INVALID_HANDLE).

mumin16osx avatar Jan 13 '24 17:01 mumin16osx