mirror of
https://github.com/glest/glest-source.git
synced 2025-08-26 09:24:24 +02:00
- updated code to protect against null pointers and uninitialized values and threading issues
This commit is contained in:
@@ -328,7 +328,7 @@ void Renderer::reset(int w, int h, PlayerColor playerColor) {
|
||||
glLoadIdentity();
|
||||
glTranslatef(0, -1.5, -5);
|
||||
|
||||
Texture2D *customTexture;
|
||||
Texture2D *customTexture=NULL;
|
||||
switch(playerColor) {
|
||||
case pcRed:
|
||||
customTexture= customTextureRed;
|
||||
@@ -462,7 +462,7 @@ void Renderer::renderParticleManager() {
|
||||
}
|
||||
|
||||
Texture2D * Renderer::getPlayerColorTexture(PlayerColor playerColor) {
|
||||
Texture2D *customTexture;
|
||||
Texture2D *customTexture=NULL;
|
||||
switch(playerColor){
|
||||
case pcRed:
|
||||
customTexture= customTextureRed;
|
||||
|
Reference in New Issue
Block a user