[retro-gtk] gl-display: Don't clear depth buffer
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [retro-gtk] gl-display: Don't clear depth buffer
- Date: Thu, 26 Jul 2018 21:28:30 +0000 (UTC)
commit e483fd82c4d596979f3bcaa786b8c1aa56076926
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date: Thu Jul 26 14:16:04 2018 +0500
gl-display: Don't clear depth buffer
Since RetroGLDisplay doesn't use depth buffer, don't waste time clearing it.
retro-gtk/retro-gl-display.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/retro-gtk/retro-gl-display.c b/retro-gtk/retro-gl-display.c
index b00fa5c..ff1fc8c 100644
--- a/retro-gtk/retro-gl-display.c
+++ b/retro-gtk/retro-gl-display.c
@@ -320,7 +320,7 @@ retro_gl_display_render (RetroGLDisplay *self)
g_return_val_if_fail (RETRO_IS_GL_DISPLAY (self), FALSE);
- glClear (GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+ glClear (GL_COLOR_BUFFER_BIT);
filter = self->filter >= RETRO_VIDEO_FILTER_COUNT ?
RETRO_VIDEO_FILTER_SMOOTH :
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]