[gtk+/wip/ebassi/gl-context-realize: 7/10] glarea: Do not use extension API
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/ebassi/gl-context-realize: 7/10] glarea: Do not use extension API
- Date: Thu, 5 Feb 2015 17:46:16 +0000 (UTC)
commit 3d6617d71811b0fb150b5a30bd16cbf9856918d3
Author: Emmanuele Bassi <ebassi gnome org>
Date: Wed Jan 28 19:07:33 2015 +0000
glarea: Do not use extension API
We are using GL contexts with Core GL profiles, so we need to use the
proper API, not the one provided by extensions.
gtk/gtkglarea.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkglarea.c b/gtk/gtkglarea.c
index b5f8a65..e6f4236 100644
--- a/gtk/gtkglarea.c
+++ b/gtk/gtkglarea.c
@@ -439,17 +439,17 @@ gtk_gl_area_allocate_buffers (GtkGLArea *area)
if (priv->render_buffer)
{
- glBindRenderbufferEXT (GL_RENDERBUFFER_EXT, priv->render_buffer);
- glRenderbufferStorageEXT (GL_RENDERBUFFER_EXT, GL_RGB8, width, height);
+ glBindRenderbuffer (GL_RENDERBUFFER, priv->render_buffer);
+ glRenderbufferStorage (GL_RENDERBUFFER, GL_RGB8, width, height);
}
if (priv->has_depth_buffer || priv->has_stencil_buffer)
{
- glBindRenderbufferEXT (GL_RENDERBUFFER_EXT, priv->depth_stencil_buffer);
+ glBindRenderbuffer (GL_RENDERBUFFER, priv->depth_stencil_buffer);
if (priv->has_stencil_buffer)
- glRenderbufferStorageEXT (GL_RENDERBUFFER_EXT, GL_DEPTH24_STENCIL8_EXT, width, height);
+ glRenderbufferStorage (GL_RENDERBUFFER, GL_DEPTH24_STENCIL8, width, height);
else
- glRenderbufferStorageEXT (GL_RENDERBUFFER_EXT, GL_DEPTH_COMPONENT24, width, height);
+ glRenderbufferStorage (GL_RENDERBUFFER, GL_DEPTH_COMPONENT24, width, height);
}
priv->needs_render = TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]