mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 03:32:46 +00:00
Some warning fixes
This commit is contained in:
parent
1526c8a15d
commit
248f1242dc
@ -142,7 +142,8 @@ void d3d10_update_texture(
|
||||
d3d10_texture_t* 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)
|
||||
return;
|
||||
|
@ -303,8 +303,9 @@ static bool d3d10_gfx_set_shader(void* data,
|
||||
{
|
||||
#if defined(HAVE_SLANG) && defined(HAVE_SPIRV_CROSS)
|
||||
unsigned i;
|
||||
d3d10_texture_t* source;
|
||||
d3d10_video_t* d3d10 = (d3d10_video_t*)data;
|
||||
config_file_t* conf = NULL;
|
||||
d3d10_texture_t* source = NULL;
|
||||
d3d10_video_t* d3d10 = (d3d10_video_t*)data;
|
||||
|
||||
if (!d3d10)
|
||||
return false;
|
||||
@ -321,7 +322,7 @@ static bool d3d10_gfx_set_shader(void* data,
|
||||
return false;
|
||||
}
|
||||
|
||||
config_file_t* conf = config_file_new(path);
|
||||
conf = config_file_new(path);
|
||||
|
||||
if (!conf)
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user