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

Add glclear in texture2DProgram #5

Closed
uberspot opened this issue Apr 14, 2014 · 2 comments
Closed

Add glclear in texture2DProgram #5

uberspot opened this issue Apr 14, 2014 · 2 comments

Comments

@uberspot
Copy link

Hello :)

Just a small suggestion.
In Texture2DProgram in the draw method before it starts drawing it should do

    GLES20.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);

To clear the buffer and not leave residues from previous draws.

@fadden
Copy link
Contributor

fadden commented Apr 14, 2014

That works if you're only drawing one thing (e.g. filling a window with video). Not so good if you're drawing multiple shapes -- see draw() in "Hardware scaler exerciser" for an example.

@uberspot
Copy link
Author

Ah yes in that case nevermind. :) I'm closing this one then.

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