mirror of
https://github.com/nunuhara/xsystem4.git
synced 2026-10-11 00:38:18 +03:00
Use glClear() to initialize texture in gfx_init_texture_rgba()
This is faster when initializing large textures.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user