gzz-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gzz-commits] libvob/vob/fillet light3d.py


From: Janne V. Kujala
Subject: [Gzz-commits] libvob/vob/fillet light3d.py
Date: Mon, 30 Jun 2003 07:20:03 -0400

CVSROOT:        /cvsroot/libvob
Module name:    libvob
Branch:         
Changes by:     Janne V. Kujala <address@hidden>        03/06/30 07:20:02

Modified files:
        vob/fillet     : light3d.py 

Log message:
        set filtering modes for the tmp texture

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/libvob/libvob/vob/fillet/light3d.py.diff?tr1=1.22&tr2=1.23&r1=text&r2=text

Patches:
Index: libvob/vob/fillet/light3d.py
diff -u libvob/vob/fillet/light3d.py:1.22 libvob/vob/fillet/light3d.py:1.23
--- libvob/vob/fillet/light3d.py:1.22   Mon Jun 30 07:04:18 2003
+++ libvob/vob/fillet/light3d.py        Mon Jun 30 07:20:01 2003
@@ -171,17 +171,16 @@
     rect = 1
     targ = "TEXTURE_RECTANGLE_NV"
     if directDepthCopy:
-        depthTexture.loadNull2D("TEXTURE_RECTANGLE_NV", 0, "DEPTH_COMPONENT24",
-                               width, height, 0, "DEPTH_COMPONENT", 
-                               "INT")
+        depthTexture.loadNull2D(targ, 0, "DEPTH_COMPONENT24",
+                               width, height, 0, "DEPTH_COMPONENT", "INT")
     else:
-        depthTexture.loadNull2D("TEXTURE_RECTANGLE_NV", 0, "RGBA8",
-                               width, height, 0, "BGRA", 
-                               "UNSIGNED_INT_8_8_8_8")
+        depthTexture.loadNull2D(targ, 0, "RGBA8",
+                               width, height, 0, "BGRA", "INT")
 
-       tmpTexture.loadNull2D("TEXTURE_RECTANGLE_NV", 0, "RGB8",
-                             width, height, 0, "RGB", 
-                             "INT")
+       tmpTexture.loadNull2D(targ, 0, "RGB8",
+                             width, height, 0, "RGB",  "INT")
+       tmpTexture.setTexParameter(targ, "TEXTURE_MIN_FILTER", "LINEAR")
+       tmpTexture.setTexParameter(targ, "TEXTURE_MAG_FILTER", "LINEAR")
        
     depthTexture.setTexParameter(targ, "TEXTURE_MIN_FILTER", "LINEAR")
     depthTexture.setTexParameter(targ, "TEXTURE_MAG_FILTER", "LINEAR")




reply via email to

[Prev in Thread] Current Thread [Next in Thread]