Fixed the getSize confusion and the wrongly comitted profiling option in the makefile.
git-svn-id: http://svn.code.sf.net/p/irrlicht/code/trunk@732 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
parent
3f5c46d952
commit
222f57d8e3
@ -158,17 +158,10 @@ COpenGLTexture::~COpenGLTexture()
|
||||
glDeleteTextures(1, &DepthRenderBuffer);
|
||||
if (StencilRenderBuffer && StencilRenderBuffer != DepthRenderBuffer)
|
||||
glDeleteTextures(1, &StencilRenderBuffer);
|
||||
ColorFrameBuffer = 0;
|
||||
DepthRenderBuffer = 0;
|
||||
StencilRenderBuffer = 0;
|
||||
|
||||
glDeleteTextures(1, &TextureName);
|
||||
if (Image)
|
||||
{
|
||||
Image->drop();
|
||||
Image=0;
|
||||
}
|
||||
ImageSize.Width=ImageSize.Height=0;
|
||||
}
|
||||
|
||||
|
||||
@ -346,8 +339,16 @@ void COpenGLTexture::unlock()
|
||||
|
||||
|
||||
|
||||
//! Returns original size of the texture.
|
||||
//! Returns size of the original image.
|
||||
const core::dimension2d<s32>& COpenGLTexture::getOriginalSize()
|
||||
{
|
||||
return ImageSize;
|
||||
}
|
||||
|
||||
|
||||
|
||||
//! Returns of the texture.
|
||||
const core::dimension2d<s32>& COpenGLTexture::getSize()
|
||||
{
|
||||
if (Image)
|
||||
return Image->getDimension();
|
||||
@ -357,14 +358,6 @@ const core::dimension2d<s32>& COpenGLTexture::getOriginalSize()
|
||||
|
||||
|
||||
|
||||
//! Returns (=size) of the texture.
|
||||
const core::dimension2d<s32>& COpenGLTexture::getSize()
|
||||
{
|
||||
return ImageSize;
|
||||
}
|
||||
|
||||
|
||||
|
||||
//! returns driver type of texture (=the driver, who created the texture)
|
||||
E_DRIVER_TYPE COpenGLTexture::getDriverType()
|
||||
{
|
||||
|
@ -38,7 +38,7 @@ CXXINCS = -I../../include -Izlib -Ijpeglib -Ilibpng
|
||||
CPPFLAGS = $(CXXINCS) -DIRRLICHT_EXPORTS=1
|
||||
CXXFLAGS = -Wall
|
||||
ifndef NDEBUG
|
||||
CXXFLAGS += -pg
|
||||
CXXFLAGS += -g
|
||||
else
|
||||
CXXFLAGS += -fexpensive-optimizations -O3
|
||||
endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user