浏览代码

Merge pull request #1560 from rextimmy/GL_FP_format_fix

GL floating point format fix.
Anis 9 年之前
父节点
当前提交
a769cda71a
共有 1 个文件被更改,包括 0 次插入10 次删除
  1. 0 10
      Engine/source/gfx/gl/gfxGLCardProfiler.cpp

+ 0 - 10
Engine/source/gfx/gl/gfxGLCardProfiler.cpp

@@ -50,16 +50,6 @@ void GFXGLCardProfiler::init()
    mVideoMemory = static_cast<GFXGLDevice*>(GFX)->getTotalVideoMemory();
    mVideoMemory = static_cast<GFXGLDevice*>(GFX)->getTotalVideoMemory();
 
 
    Parent::init();
    Parent::init();
-   
-   // Set new enums here so if our profile script forces this to be false we keep the GL_ZEROs.
-   if(queryProfile("GL::suppFloatTexture"))
-   {
-      GFXGLTextureInternalFormat[GFXFormatR16G16F] = GL_RGBA_FLOAT16_ATI;
-      GFXGLTextureFormat[GFXFormatR16G16F] = GL_RGBA;
-      GFXGLTextureInternalFormat[GFXFormatR16G16B16A16F] = GL_RGBA_FLOAT16_ATI;
-      GFXGLTextureInternalFormat[GFXFormatR32G32B32A32F] = GL_RGBA_FLOAT32_ATI;
-      GFXGLTextureInternalFormat[GFXFormatR32F] = GL_RGBA_FLOAT32_ATI;
-   }
 }
 }
 
 
 void GFXGLCardProfiler::setupCardCapabilities()
 void GFXGLCardProfiler::setupCardCapabilities()