Let's not spam the logs with NULL texture warning messages

This commit is contained in:
paibox 2013-06-20 08:22:50 +02:00
parent 344c795b9f
commit bdcdec1a29

View File

@ -1281,7 +1281,7 @@ void DeviceSource::Render(const Vect2 &pos, const Vect2 &size)
if(bFlip) { if(bFlip) {
switch(deinterlacingType) { switch(deinterlacingType) {
case deinterlacing_Discard: case deinterlacing_Discard:
DrawSpriteEx(texture, (opacity255<<24) | 0xFFFFFF, x, pos.y, x2, pos.y+size.y, 0.0f, 0.0f, 1.0f, 0.5f); if(texture != NULL) DrawSpriteEx(texture, (opacity255<<24) | 0xFFFFFF, x, pos.y, x2, pos.y+size.y, 0.0f, 0.0f, 1.0f, 0.5f);
break; break;
default: default:
DrawSprite(texture, (opacity255<<24) | 0xFFFFFF, x, pos.y, x2, pos.y+size.y); DrawSprite(texture, (opacity255<<24) | 0xFFFFFF, x, pos.y, x2, pos.y+size.y);
@ -1291,7 +1291,7 @@ void DeviceSource::Render(const Vect2 &pos, const Vect2 &size)
else { else {
switch(deinterlacingType) { switch(deinterlacingType) {
case deinterlacing_Discard: case deinterlacing_Discard:
DrawSpriteEx(texture, (opacity255<<24) | 0xFFFFFF, x, pos.y+size.y, x2, pos.y, 0.0f, 0.0f, 1.0f, 0.5f); if(texture != NULL) DrawSpriteEx(texture, (opacity255<<24) | 0xFFFFFF, x, pos.y+size.y, x2, pos.y, 0.0f, 0.0f, 1.0f, 0.5f);
break; break;
default: default:
DrawSprite(texture, (opacity255<<24) | 0xFFFFFF, x, pos.y+size.y, x2, pos.y); DrawSprite(texture, (opacity255<<24) | 0xFFFFFF, x, pos.y+size.y, x2, pos.y);