Commit a6915404 authored by hybrid's avatar hybrid

Replace another redundant variable.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1078 dfc29bdd-3216-0410-991c-e03cc46cb475
parent eed5ae57
...@@ -2121,11 +2121,11 @@ ITexture* COpenGLDriver::createRenderTargetTexture(const core::dimension2d<s32>& ...@@ -2121,11 +2121,11 @@ ITexture* COpenGLDriver::createRenderTargetTexture(const core::dimension2d<s32>&
#if defined(GL_EXT_framebuffer_object) #if defined(GL_EXT_framebuffer_object)
// if driver supports FrameBufferObjects, use them // if driver supports FrameBufferObjects, use them
if (queryFeature(EVDF_FRAMEBUFFER_OBJECT)) if (queryFeature(EVDF_FRAMEBUFFER_OBJECT))
rtt = new COpenGLTexture(size, PackedDepthStencilExtension, name, this); rtt = new COpenGLTexture(size, FeatureAvailable[IRR_EXT_packed_depth_stencil], name, this);
else else
#endif #endif
{ {
rtt = addTexture(size, name); rtt = addTexture(size, name, ECF_A8R8G8B8);
if (rtt) if (rtt)
{ {
rtt->grab(); rtt->grab();
......
...@@ -17,7 +17,6 @@ COpenGLExtensionHandler::COpenGLExtensionHandler() : ...@@ -17,7 +17,6 @@ COpenGLExtensionHandler::COpenGLExtensionHandler() :
MultiTextureExtension(false), MultiSamplingExtension(false), AnisotropyExtension(false), MultiTextureExtension(false), MultiSamplingExtension(false), AnisotropyExtension(false),
SeparateStencilExtension(false), SeparateStencilExtension(false),
TextureCompressionExtension(false), TextureCompressionExtension(false),
PackedDepthStencilExtension(false),
VertexBufferObjectExtension(false), VertexBufferObjectExtension(false),
MaxTextureUnits(1), MaxLights(1), MaxIndices(65535), MaxTextureUnits(1), MaxLights(1), MaxIndices(65535),
MaxAnisotropy(1.0f), MaxUserClipPlanes(0), MaxAnisotropy(1.0f), MaxUserClipPlanes(0),
...@@ -105,7 +104,6 @@ void COpenGLExtensionHandler::initExtensions(bool stencilBuffer) ...@@ -105,7 +104,6 @@ void COpenGLExtensionHandler::initExtensions(bool stencilBuffer)
AnisotropyExtension = FeatureAvailable[IRR_EXT_texture_filter_anisotropic]; AnisotropyExtension = FeatureAvailable[IRR_EXT_texture_filter_anisotropic];
SeparateStencilExtension = FeatureAvailable[IRR_ATI_separate_stencil]; SeparateStencilExtension = FeatureAvailable[IRR_ATI_separate_stencil];
TextureCompressionExtension = FeatureAvailable[IRR_ARB_texture_compression]; TextureCompressionExtension = FeatureAvailable[IRR_ARB_texture_compression];
PackedDepthStencilExtension = FeatureAvailable[IRR_EXT_packed_depth_stencil];
VertexBufferObjectExtension = FeatureAvailable[IRR_ARB_vertex_buffer_object]; VertexBufferObjectExtension = FeatureAvailable[IRR_ARB_vertex_buffer_object];
StencilBuffer=stencilBuffer; StencilBuffer=stencilBuffer;
......
...@@ -665,7 +665,6 @@ class COpenGLExtensionHandler ...@@ -665,7 +665,6 @@ class COpenGLExtensionHandler
bool AnisotropyExtension; bool AnisotropyExtension;
bool SeparateStencilExtension; bool SeparateStencilExtension;
bool TextureCompressionExtension; bool TextureCompressionExtension;
bool PackedDepthStencilExtension;
bool VertexBufferObjectExtension; bool VertexBufferObjectExtension;
// Some non-boolean properties // Some non-boolean properties
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment