UPD: Remove unecessary scissor test, closes #34
All checks were successful
Tests / test (push) Successful in 2m33s

This commit is contained in:
Sebastian Böckelmann 2026-04-20 10:57:03 +02:00
parent 6c7254378c
commit f6cada3cf8

View File

@ -25,11 +25,6 @@ void GUIRenderer::render(std::vector<std::shared_ptr<GUITexture>>& gui_textures)
glBindVertexArray(rawModel->vaoID);
glEnableVertexAttribArray(0);
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);
glBindTexture(GL_TEXTURE_2D, texture->getTextureID());
guiShader.loadForegroundTexture(0, true);