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

Fix gl3 uniforms restore logic #149

Open
logzero opened this issue Oct 18, 2016 · 0 comments
Open

Fix gl3 uniforms restore logic #149

logzero opened this issue Oct 18, 2016 · 0 comments

Comments

@logzero
Copy link
Member

logzero commented Oct 18, 2016

gdebugger trace shows uniforms uploaded twice, which is not what we want.

glActiveTexture(GL_TEXTURE0)
glBindTexture(GL_TEXTURE_2D, 29) [Context 4 - Texture 29: Context 4 - Texture 29]
glActiveTexture(GL_TEXTURE1)
glBindTexture(GL_TEXTURE_2D, 30) [Context 4 - Texture 30: Context 4 - Texture 30]
glUniformMatrix4fv(2, 1, FALSE, {-0.64278769, -0.7660445, -2.7010078e-008, 0} {0.7660445, -0.64278769, 1.2595006e-008, 0} {-2.7010078e-008, -1.2595006e-008, 1, 0} {0.090082958, 0.51184475, 0.67502683, 1})
glUniform4f(0, 1, 1, 1, 1)
glUniformMatrix4fv(2, 1, FALSE, {-0.64278769, -0.7660445, -2.7010078e-008, 0} {0.7660445, -0.64278769, 1.2595006e-008, 0} {-2.7010078e-008, -1.2595006e-008, 1, 0} {0.090082958, 0.51184475, 0.67502683, 1})
glDrawRangeElements(GL_TRIANGLES, 6403, 7518, 4533, GL_UNSIGNED_INT, 0x0000000000018C30)

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