mirror of
https://github.com/glest/glest-source.git
synced 2025-08-28 02:09:54 +02:00
Fixed transparency issue
This commit is contained in:
@@ -57,7 +57,6 @@ namespace Shared {
|
||||
customTextureCyan = NULL;
|
||||
customTextureOrange = NULL;
|
||||
customTextureMagenta = NULL;
|
||||
customTextureTransparent = NULL;
|
||||
particleManager = NULL;
|
||||
}
|
||||
|
||||
@@ -220,11 +219,6 @@ namespace Shared {
|
||||
customTextureMagenta->getPixmap()->init(1, 1, 4);
|
||||
customTextureMagenta->getPixmap()->setPixel(0, 0, Vec4f(1.f, 0.5f, 1.f, 1.0f));
|
||||
|
||||
//transparent tex
|
||||
customTextureTransparent = textureManager->newTexture2D();
|
||||
customTextureTransparent->getPixmap()->init(1, 1, 4);
|
||||
customTextureTransparent->getPixmap()->setPixel(0, 0, Vec4f(1.0f, 1.0f, 1.0f, 0.0f));
|
||||
|
||||
glClearColor(red, green, blue, alpha); //backgroundcolor constant 0.3
|
||||
//glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
||||
|
||||
@@ -305,9 +299,6 @@ namespace Shared {
|
||||
case pcMagenta:
|
||||
customTexture = customTextureMagenta;
|
||||
break;
|
||||
case pcTransparent:
|
||||
customTexture = customTextureTransparent;
|
||||
break;
|
||||
default:
|
||||
assert(false);
|
||||
break;
|
||||
@@ -434,9 +425,6 @@ namespace Shared {
|
||||
case pcMagenta:
|
||||
customTexture = customTextureMagenta;
|
||||
break;
|
||||
case pcTransparent:
|
||||
customTexture = customTextureTransparent;
|
||||
break;
|
||||
default:
|
||||
throw megaglest_runtime_error("Unknown playercolor: " + intToStr(playerColor));
|
||||
break;
|
||||
|
Reference in New Issue
Block a user