UPD: Remove unecessary scissor test, closes #34
All checks were successful
Tests / test (push) Successful in 2m33s
All checks were successful
Tests / test (push) Successful in 2m33s
This commit is contained in:
parent
6c7254378c
commit
f6cada3cf8
@ -25,11 +25,6 @@ void GUIRenderer::render(std::vector<std::shared_ptr<GUITexture>>& gui_textures)
|
|||||||
glBindVertexArray(rawModel->vaoID);
|
glBindVertexArray(rawModel->vaoID);
|
||||||
glEnableVertexAttribArray(0);
|
glEnableVertexAttribArray(0);
|
||||||
for (auto texture : gui_textures) {
|
for (auto texture : gui_textures) {
|
||||||
glEnable(GL_SCISSOR_TEST);
|
|
||||||
const auto& r = texture->getClipRect();
|
|
||||||
glScissor(r.x, r.y, r.w, r.h);
|
|
||||||
glDisable(GL_SCISSOR_TEST);
|
|
||||||
|
|
||||||
glActiveTexture(GL_TEXTURE0);
|
glActiveTexture(GL_TEXTURE0);
|
||||||
glBindTexture(GL_TEXTURE_2D, texture->getTextureID());
|
glBindTexture(GL_TEXTURE_2D, texture->getTextureID());
|
||||||
guiShader.loadForegroundTexture(0, true);
|
guiShader.loadForegroundTexture(0, true);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user