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

Discard is not working properly #18

Closed
fekga opened this issue Oct 12, 2015 · 2 comments
Closed

Discard is not working properly #18

fekga opened this issue Oct 12, 2015 · 2 comments

Comments

@fekga
Copy link

fekga commented Oct 12, 2015

According to the the OpenGL ES 1.00 specification the discard keyword will not update the buffer if called. Thus it should contain the last written pixel value in the buffer until overwritten.
In the ShaderEditor discard will cause the (not) written pixel to be black. I think this is caused by the clear command at the start of rendering. It would be nice to make use of the discard keyword!

@markusfisch
Copy link
Owner

Interesting - I'll check that and change it if possible. Something tells me dropping glClear() will have side effects but I'll try.

@markusfisch
Copy link
Owner

Dropped glClear() in bba8c4e.

Works on all of my devices without problems. Calling discard will preserve the buffer now. Will be in the next release.

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