Some warning fixes

This commit is contained in:
twinaphex 2018-04-21 18:14:19 +02:00
parent 1526c8a15d
commit 248f1242dc
2 changed files with 6 additions and 4 deletions

View File

@ -142,7 +142,8 @@ void d3d10_update_texture(
d3d10_texture_t* texture) d3d10_texture_t* texture)
{ {
D3D10_MAPPED_TEXTURE2D mapped_texture; D3D10_MAPPED_TEXTURE2D mapped_texture;
D3D10_BOX frame_box = { 0, 0, 0, width, height, 1 }; D3D10_BOX frame_box = { 0, 0, 0, (UINT)width,
(UINT)height, 1 };
if (!texture || !texture->staging) if (!texture || !texture->staging)
return; return;

View File

@ -303,8 +303,9 @@ static bool d3d10_gfx_set_shader(void* data,
{ {
#if defined(HAVE_SLANG) && defined(HAVE_SPIRV_CROSS) #if defined(HAVE_SLANG) && defined(HAVE_SPIRV_CROSS)
unsigned i; unsigned i;
d3d10_texture_t* source; config_file_t* conf = NULL;
d3d10_video_t* d3d10 = (d3d10_video_t*)data; d3d10_texture_t* source = NULL;
d3d10_video_t* d3d10 = (d3d10_video_t*)data;
if (!d3d10) if (!d3d10)
return false; return false;
@ -321,7 +322,7 @@ static bool d3d10_gfx_set_shader(void* data,
return false; return false;
} }
config_file_t* conf = config_file_new(path); conf = config_file_new(path);
if (!conf) if (!conf)
return false; return false;