[gtk+] glarea: Do not use extension API
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] glarea: Do not use extension API
- Date: Mon, 9 Feb 2015 19:17:18 +0000 (UTC)
commit 5a3b28aaf1bb8d50a56866d885e49e51c3cafd55
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.
https://bugzilla.gnome.org/show_bug.cgi?id=741946
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]