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