mirror of
https://github.com/glest/glest-source.git
synced 2025-09-30 17:39:02 +02:00
- bugfixes for coverity reported issues
- new bash parameters for build-mg.sh (in prep for coverity automation) - updated travis build to use new bash param
This commit is contained in:
@@ -114,6 +114,10 @@ std::pair<SDL_Surface*,unsigned char*> Texture2D::CreateSDLSurface(bool newPixel
|
||||
/* Use the surface width and height expanded to powers of 2 */
|
||||
//int w = powerOfTwo(surface->w);
|
||||
//int h = powerOfTwo(surface->h);
|
||||
if(result.first == NULL) {
|
||||
throw megaglest_runtime_error("result.first == NULL");
|
||||
}
|
||||
|
||||
int w = result.first->w;
|
||||
int h = result.first->h;
|
||||
|
||||
|
Reference in New Issue
Block a user