Let's not spam the logs with NULL texture warning messages
This commit is contained in:
parent
344c795b9f
commit
bdcdec1a29
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user