Replace another redundant variable.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1078 dfc29bdd-3216-0410-991c-e03cc46cb475master
parent
eed5ae57a0
commit
a691540444
|
@ -2121,11 +2121,11 @@ ITexture* COpenGLDriver::createRenderTargetTexture(const core::dimension2d<s32>&
|
|||
#if defined(GL_EXT_framebuffer_object)
|
||||
// if driver supports FrameBufferObjects, use them
|
||||
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
|
||||
#endif
|
||||
{
|
||||
rtt = addTexture(size, name);
|
||||
rtt = addTexture(size, name, ECF_A8R8G8B8);
|
||||
if (rtt)
|
||||
{
|
||||
rtt->grab();
|
||||
|
|
|
@ -17,7 +17,6 @@ COpenGLExtensionHandler::COpenGLExtensionHandler() :
|
|||
MultiTextureExtension(false), MultiSamplingExtension(false), AnisotropyExtension(false),
|
||||
SeparateStencilExtension(false),
|
||||
TextureCompressionExtension(false),
|
||||
PackedDepthStencilExtension(false),
|
||||
VertexBufferObjectExtension(false),
|
||||
MaxTextureUnits(1), MaxLights(1), MaxIndices(65535),
|
||||
MaxAnisotropy(1.0f), MaxUserClipPlanes(0),
|
||||
|
@ -105,7 +104,6 @@ void COpenGLExtensionHandler::initExtensions(bool stencilBuffer)
|
|||
AnisotropyExtension = FeatureAvailable[IRR_EXT_texture_filter_anisotropic];
|
||||
SeparateStencilExtension = FeatureAvailable[IRR_ATI_separate_stencil];
|
||||
TextureCompressionExtension = FeatureAvailable[IRR_ARB_texture_compression];
|
||||
PackedDepthStencilExtension = FeatureAvailable[IRR_EXT_packed_depth_stencil];
|
||||
VertexBufferObjectExtension = FeatureAvailable[IRR_ARB_vertex_buffer_object];
|
||||
StencilBuffer=stencilBuffer;
|
||||
|
||||
|
|
|
@ -665,7 +665,6 @@ class COpenGLExtensionHandler
|
|||
bool AnisotropyExtension;
|
||||
bool SeparateStencilExtension;
|
||||
bool TextureCompressionExtension;
|
||||
bool PackedDepthStencilExtension;
|
||||
bool VertexBufferObjectExtension;
|
||||
|
||||
// Some non-boolean properties
|
||||
|
|
Loading…
Reference in New Issue