Revision: 15663
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=15663
Author:   zaghaghi
Date:     2008-07-21 01:34:17 +0200 (Mon, 21 Jul 2008)

Log Message:
-----------
BGE 2dFilters some extra fixes

Modified Paths:
--------------
    trunk/blender/source/gameengine/Rasterizer/RAS_2DFilterManager.cpp

Modified: trunk/blender/source/gameengine/Rasterizer/RAS_2DFilterManager.cpp
===================================================================
--- trunk/blender/source/gameengine/Rasterizer/RAS_2DFilterManager.cpp  
2008-07-20 23:03:01 UTC (rev 15662)
+++ trunk/blender/source/gameengine/Rasterizer/RAS_2DFilterManager.cpp  
2008-07-20 23:34:17 UTC (rev 15663)
@@ -159,7 +159,8 @@
        texflag[passindex] = 0;
        if(glGetUniformLocationARB(m_filters[passindex], "bgl_DepthTexture") != 
-1)
        {
-               texflag[passindex] |= 0x1;
+               if(GLEW_ARB_depth_texture)
+                       texflag[passindex] |= 0x1;
        }
        if(glGetUniformLocationARB(m_filters[passindex], 
"bgl_LuminanceTexture") != -1)
        {
@@ -262,7 +263,7 @@
        
        glGenTextures(1, (GLuint*)&texname[0]);
        glBindTexture(GL_TEXTURE_2D, texname[0]);
-       glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, texturewidth, textureheight, 0, 
GL_RGB,
+       glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, texturewidth, textureheight, 0, 
GL_RGBA,
                        GL_UNSIGNED_BYTE, 0);
        glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
        glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);


_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to