[gtk+/wip/baedert/gl: 7/11] gl driver: Remove dead warning code
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/gl: 7/11] gl driver: Remove dead warning code
- Date: Fri, 29 Dec 2017 04:59:54 +0000 (UTC)
commit 1cbd4d229ec418dacac542d30bee3b39d4fd8f26
Author: Timm Bäder <mail baedert org>
Date: Thu Dec 28 21:29:50 2017 +0100
gl driver: Remove dead warning code
_get_fbo never returns NULL.
gsk/gl/gskgldriver.c | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/gsk/gl/gskgldriver.c b/gsk/gl/gskgldriver.c
index 3ac22e3..ba6552b 100644
--- a/gsk/gl/gskgldriver.c
+++ b/gsk/gl/gskgldriver.c
@@ -320,7 +320,7 @@ gsk_gl_driver_get_texture (GskGLDriver *driver,
return NULL;
}
-static Fbo *
+static const Fbo *
gsk_gl_driver_get_fbo (GskGLDriver *driver,
int texture_id)
{
@@ -587,7 +587,7 @@ gsk_gl_driver_bind_render_target (GskGLDriver *driver,
int texture_id)
{
int status;
- Fbo *f;
+ const Fbo *f;
g_return_val_if_fail (GSK_IS_GL_DRIVER (driver), FALSE);
g_return_val_if_fail (driver->in_frame, FALSE);
@@ -600,11 +600,6 @@ gsk_gl_driver_bind_render_target (GskGLDriver *driver,
}
f = gsk_gl_driver_get_fbo (driver, texture_id);
- if (f == NULL)
- {
- g_critical ("No render target associated to texture %d found.", texture_id);
- return FALSE;
- }
if (f != driver->bound_fbo)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]