Re #714 Fixed unused var warning

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@4766 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: d35ce480030f6f24edd3609790ebd297cdeca768
Former-commit-id: 0f7815a82733cda2e01ef20fe269cad4d3029740
This commit is contained in:
pouillot 2012-06-23 12:32:43 +00:00
parent fc8c81e5cb
commit fc360489a0

View file

@ -169,13 +169,14 @@ void GfglFeatures::detectStandardSupport()
_mapSupportedBool[StereoVision] = false;
// 10) Bump Mapping
bool bValueBump = gfglIsOpenGLExtensionSupported("GL_ARB_multitexture") &&
gfglIsOpenGLExtensionSupported("GL_ARB_texture_cube_map") &&
gfglIsOpenGLExtensionSupported("GL_ARB_texture_env_combine") &&
gfglIsOpenGLExtensionSupported("GL_ARB_texture_env_dot3") &&
gfglIsOpenGLExtensionSupported("GL_ARB_imaging");
bValue =
gfglIsOpenGLExtensionSupported("GL_ARB_multitexture")
&& gfglIsOpenGLExtensionSupported("GL_ARB_texture_cube_map")
&& gfglIsOpenGLExtensionSupported("GL_ARB_texture_env_combine")
&& gfglIsOpenGLExtensionSupported("GL_ARB_texture_env_dot3")
&& gfglIsOpenGLExtensionSupported("GL_ARB_imaging");
_mapSupportedBool[BumpMapping] = bValueBump;
_mapSupportedBool[BumpMapping] = bValue;
}
// Best supported features detection for the given specs of the frame buffer.
@ -194,7 +195,6 @@ bool GfglFeatures::detectBestSupport(int& nWidth, int& nHeight, int& nDepth,
int nAlphaChannel = bAlpha ? 1 : 0;
int nCurrDepth = nDepth;
int nFullScreen = bFullScreen ? 1 : 0;
int nBump = bBumpMapping ? 1 : 0;
int nStereoVision = bStereoVision ? 1 : 0;
while (!pWinSurface && nFullScreen >= 0)