Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text will not render #24

Open
mumin16osx opened this issue Jan 13, 2024 · 2 comments
Open

Text will not render #24

mumin16osx opened this issue Jan 13, 2024 · 2 comments

Comments

@mumin16osx
Copy link

mumin16osx commented Jan 13, 2024

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

@mumin16osx
Copy link
Author

mumin16osx commented Jan 13, 2024

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
Copy link
Author

mumin16osx commented Jan 13, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant