Use glClear() to initialize texture in gfx_init_texture_rgba()

This is faster when initializing large textures.
This commit is contained in:
kichikuou
2024-06-19 07:45:55 +09:00
parent 6379dbad4b
commit 04d5237020
3 changed files with 14 additions and 17 deletions
+1
View File
@@ -824,6 +824,7 @@ void RE_render(struct sact_sprite *sp)
if (glCheckFramebufferStatus(GL_DRAW_FRAMEBUFFER) != GL_FRAMEBUFFER_COMPLETE)
ERROR("Incomplete framebuffer");
glClearColor(0.f, 0.f, 0.f, 1.f);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
// Draw background CGs.