mirror of
https://github.com/glest/glest-source.git
synced 2025-09-30 09:29:25 +02:00
- more code cleanup from things found in valgrind
This commit is contained in:
@@ -655,7 +655,7 @@ TextureGl::~TextureGl() {
|
||||
}
|
||||
|
||||
TextureGl::~TextureGl() {
|
||||
// Need some work to get extensions properly working in Windows (use Glew lib)
|
||||
// Need some work to get extensions properly working in Windows (use Glew lib)
|
||||
if(glGenFramebuffersEXT) {
|
||||
if(renderBufferId != 0) {
|
||||
glDeleteRenderbuffersEXT(1, &renderBufferId);
|
||||
@@ -748,7 +748,7 @@ void Texture1DGl::end(bool deletePixelBuffer) {
|
||||
assertGl();
|
||||
}
|
||||
|
||||
void Texture1DGl::end(bool deletePixelBuffer) {
|
||||
void Texture1DGl::end(bool deletePixelBuffer) {
|
||||
if(inited == true) {
|
||||
assertGl();
|
||||
glDeleteTextures(1, &handle);
|
||||
@@ -854,7 +854,7 @@ void Texture2DGl::end(bool deletePixelBuffer) {
|
||||
}
|
||||
|
||||
void Texture2DGl::end(bool deletePixelBuffer) {
|
||||
if(inited == true) {
|
||||
if(inited == true) {
|
||||
//printf("==> Deleting GL Texture [%s] handle = %d\n",getPath().c_str(),handle);
|
||||
assertGl();
|
||||
glDeleteTextures(1, &handle);
|
||||
@@ -929,7 +929,7 @@ void Texture3DGl::end(bool deletePixelBuffer) {
|
||||
assertGl();
|
||||
}
|
||||
|
||||
void Texture3DGl::end(bool deletePixelBuffer) {
|
||||
void Texture3DGl::end(bool deletePixelBuffer) {
|
||||
if(inited == true) {
|
||||
assertGl();
|
||||
glDeleteTextures(1, &handle);
|
||||
|
Reference in New Issue
Block a user