mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 08:30:16 +00:00
d3d9: "Fix" the HLSL render chain
It won't get you very far, but at least it won't crash. Needs HAVE_HLSL and HAVE_D3DX defines and DirectX SDK
This commit is contained in:
parent
3c6552ba4d
commit
a4dec6e226
@ -34,11 +34,11 @@ static const char *stock_hlsl_program = CG(
|
||||
float frame_rotation;
|
||||
};
|
||||
|
||||
output main_fragment(float2 texCoord : TEXCOORD0,
|
||||
output main_fragment(float4 color : COLOR, float2 texCoord : TEXCOORD0,
|
||||
uniform sampler2D decal : TEXUNIT0, uniform input IN)
|
||||
{
|
||||
output OUT;
|
||||
OUT.color = tex2D(decal, texCoord);
|
||||
OUT.color = color * tex2D(decal, texCoord);
|
||||
return OUT;
|
||||
}
|
||||
);
|
||||
|
@ -246,7 +246,7 @@ static bool hlsl_d3d9_renderchain_create_first_pass(
|
||||
unsigned _fmt)
|
||||
{
|
||||
unsigned i;
|
||||
struct shader_pass pass;
|
||||
struct shader_pass pass = { 0 };
|
||||
unsigned fmt =
|
||||
(_fmt == RETRO_PIXEL_FORMAT_RGB565) ?
|
||||
d3d9_get_rgb565_format() : d3d9_get_xrgb8888_format();
|
||||
|
Loading…
Reference in New Issue
Block a user