mirror of
https://github.com/libretro/RetroArch
synced 2025-02-06 18:40:49 +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_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;
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user