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

Use of OpenGL blending creates apparent incompatibilities #1

Open
jasonpfox opened this issue May 10, 2018 · 1 comment
Open

Use of OpenGL blending creates apparent incompatibilities #1

jasonpfox opened this issue May 10, 2018 · 1 comment

Comments

@jasonpfox
Copy link

I was trying to add menus to an existing OpenGL application and found that as soon as a menu was enabled, most of the other data layers being drawn to OpenGL buffer were lost / no longer rendered over the entire window.

If I comment out the blend-related calls in menu drawing and gltext drawing, then functionality appears to be restored with compatibility between the menus and my prior drawing code and all information being drawn to the screen.

I am not very familiar with OpenGL and do not know if there is a specific need / desire for the blending or if it would be desirable to remove the blending to increase compatibility (unless I am doing something wrong elsewhere that is hidden when not using a layer employing blending).

For my application, I also have to turn off the depth function, and with DEPTH_TEST not enabled then blending is no longer required to get text to render...

@4ydx
Copy link
Owner

4ydx commented Jul 11, 2018

Thanks for pointing this out. I don't believe I had tried rendering menus alongside other objects. I was treating it as an either or situation. Please be sure to update your fork so that everybody can see what it is that you did. At some point I might look into it myself.

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

2 participants