mirror of
https://github.com/jmarshall23/DoomRTX.git
synced 2026-08-12 08:11:10 +02:00
Editor theme and bug fixes.
This commit is contained in:
@@ -430,6 +430,14 @@ static bool R_ParseImageProgram_r( idLexer &src, byte **pic, int *width, int *he
|
||||
|
||||
// process it
|
||||
if ( pic ) {
|
||||
if (pic2 == NULL || width2 == 0 || height2 == 0) {
|
||||
if (pic) {
|
||||
R_StaticFree(*pic);
|
||||
*pic = NULL;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
R_AddNormalMaps( *pic, *width, *height, pic2, width2, height2 );
|
||||
R_StaticFree( pic2 );
|
||||
if ( depth ) {
|
||||
|
||||
Reference in New Issue
Block a user