[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gzz-commits] gzz/gfx/libpaper papermill.py
From: |
Tuomas J. Lukka |
Subject: |
[Gzz-commits] gzz/gfx/libpaper papermill.py |
Date: |
Mon, 23 Sep 2002 10:39:25 -0400 |
CVSROOT: /cvsroot/gzz
Module name: gzz
Changes by: Tuomas J. Lukka <address@hidden> 02/09/23 10:39:25
Modified files:
gfx/libpaper : papermill.py
Log message:
Use hasExtension in paperlib
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gfx/libpaper/papermill.py.diff?tr1=1.28&tr2=1.29&r1=text&r2=text
Patches:
Index: gzz/gfx/libpaper/papermill.py
diff -c gzz/gfx/libpaper/papermill.py:1.28 gzz/gfx/libpaper/papermill.py:1.29
*** gzz/gfx/libpaper/papermill.py:1.28 Mon Sep 23 04:37:04 2002
--- gzz/gfx/libpaper/papermill.py Mon Sep 23 10:39:25 2002
***************
*** 19,25 ****
version = GL.getGLString("VERSION")
print "GL strings: '%s' '%s' '%s'"%(
vendor,renderer,version)
- extensions = GL.getGLString("EXTENSIONS").split()
# The backend files to load
files = [
"textures.py",
--- 19,24 ----
***************
*** 33,39 ****
#
# Check which texture operations to use.
! if "GL_NV_texture_shader" in extensions:
# We can use the general texture shaders.
# XXX Should check separately for texture_shader2,
# otherwise it'll be SLOW.
--- 32,38 ----
#
# Check which texture operations to use.
! if GL.hasExtension("GL_NV_texture_shader"):
# We can use the general texture shaders.
# XXX Should check separately for texture_shader2,
# otherwise it'll be SLOW.
***************
*** 45,51 ****
# Check which combiners to use.
! if "GL_NV_register_combiners" in extensions:
# We have at least a NV10, possibly better.
# Check the number of general combiners to be sure.
maxcomb = GL.getGLFloat("MAX_GENERAL_COMBINERS_NV")[0]
--- 44,50 ----
# Check which combiners to use.
! if GL.hasExtension("GL_NV_register_combiners"):
# We have at least a NV10, possibly better.
# Check the number of general combiners to be sure.
maxcomb = GL.getGLFloat("MAX_GENERAL_COMBINERS_NV")[0]
- [Gzz-commits] gzz/gfx/libpaper papermill.py,
Tuomas J. Lukka <=