Temp commit. X PV. ImGui is broken a bit

This commit is contained in:
korenkonder
2022-08-04 00:39:23 +03:00
parent 935d7ffeb6
commit 64c1775f92
230 changed files with 33553 additions and 57911 deletions
+2 -2
View File
@@ -277,7 +277,7 @@ static int32_t render_texture_framebuffer_set_texture(render_texture* rt,
if (level < 0 || level > rt->max_level)
return -1;
glBindFramebuffer(GL_FRAMEBUFFER, rt->fbos[level]);
gl_state_bind_framebuffer(rt->fbos[level]);
glGetError();
if (color_texture) {
@@ -327,7 +327,7 @@ static int32_t render_texture_framebuffer_set_texture(render_texture* rt,
int32_t ret = 0;
if (glCheckFramebufferStatus(GL_FRAMEBUFFER) != GL_FRAMEBUFFER_COMPLETE)
ret = -1;
glBindFramebuffer(GL_FRAMEBUFFER, 0);
gl_state_bind_framebuffer(0);
glGetError();
return ret;
}