Added stencil buffer

This commit is contained in:
masscat 2007-06-27 14:44:40 +00:00
parent de0c0d81a4
commit c48f792197
2 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $Id: gdk_3Demu.c,v 1.2 2007-04-24 16:22:57 masscat Exp $ /* $Id: gdk_3Demu.c,v 1.3 2007-06-27 14:44:40 masscat Exp $
*/ */
/* /*
Copyright (C) 2006-2007 Ben Jaques Copyright (C) 2006-2007 Ben Jaques
@ -157,6 +157,7 @@ init_opengl_gdk_3Demu( void) {
glconfig = gdk_gl_config_new_by_mode (GDK_GL_MODE_RGBA | glconfig = gdk_gl_config_new_by_mode (GDK_GL_MODE_RGBA |
GDK_GL_MODE_DEPTH | GDK_GL_MODE_DEPTH |
GDK_GL_MODE_STENCIL |
GDK_GL_MODE_SINGLE); GDK_GL_MODE_SINGLE);
if (glconfig == NULL) if (glconfig == NULL)
{ {

View File

@ -1,4 +1,4 @@
/* $Id: gdk_3Demu.c,v 1.2 2007-04-24 16:22:11 masscat Exp $ /* $Id: gdk_3Demu.c,v 1.3 2007-06-27 14:44:40 masscat Exp $
*/ */
/* /*
Copyright (C) 2006-2007 Ben Jaques Copyright (C) 2006-2007 Ben Jaques
@ -157,6 +157,7 @@ init_opengl_gdk_3Demu( void) {
glconfig = gdk_gl_config_new_by_mode (GDK_GL_MODE_RGBA | glconfig = gdk_gl_config_new_by_mode (GDK_GL_MODE_RGBA |
GDK_GL_MODE_DEPTH | GDK_GL_MODE_DEPTH |
GDK_GL_MODE_STENCIL |
GDK_GL_MODE_SINGLE); GDK_GL_MODE_SINGLE);
if (glconfig == NULL) if (glconfig == NULL)
{ {