Fixed compiler warning with gcc
authorSam Lantinga <slouken@libsdl.org>
Tue, 30 Jul 2013 00:02:45 -0700
changeset 7547 abdea1385dbb
parent 7546 f9ff5e066e49
child 7548 66f9d44f9717
Fixed compiler warning with gcc
src/render/direct3d/SDL_render_d3d.c
--- a/src/render/direct3d/SDL_render_d3d.c	Mon Jul 29 23:28:25 2013 -0700
+++ b/src/render/direct3d/SDL_render_d3d.c	Tue Jul 30 00:02:45 2013 -0700
@@ -833,7 +833,7 @@
             0x80e40000, 0x0000ffff
         };
 #endif
-        if (shader_data) {
+        if (shader_data != NULL) {
             result = IDirect3DDevice9_CreatePixelShader(data->device, shader_data, &data->ps_yuv);
             if (!FAILED(result)) {
                 renderer->info.texture_formats[renderer->info.num_texture_formats++] = SDL_PIXELFORMAT_YV12;