mirror of
https://github.com/libretro/RetroArch
synced 2025-01-29 09:32:52 +00:00
win32: style, remove left over opacity shader
This commit is contained in:
parent
29fa71b664
commit
88d457baab
@ -395,7 +395,7 @@ D3DVideo::D3DVideo(const video_info_t *info) :
|
||||
gfx_set_dwm();
|
||||
|
||||
#ifdef HAVE_OVERLAY
|
||||
std::memset(&overlay,0,sizeof(overlay));
|
||||
std::memset(&overlay, 0, sizeof(overlay));
|
||||
#endif
|
||||
|
||||
std::memset(&windowClass, 0, sizeof(windowClass));
|
||||
@ -574,9 +574,7 @@ bool D3DVideo::frame(const void *frame,
|
||||
|
||||
#ifdef HAVE_OVERLAY
|
||||
if (overlay.overlay_enabled)
|
||||
{
|
||||
overlay_render();
|
||||
}
|
||||
#endif
|
||||
|
||||
RARCH_PERFORMANCE_STOP(d3d_frame);
|
||||
@ -1240,15 +1238,6 @@ void D3DVideo::overlay_set_alpha(float mod)
|
||||
overlay.overlay_alpha_mod = mod;
|
||||
}
|
||||
|
||||
static const char *opacity_fragment =
|
||||
"uniform float opacity;\n"
|
||||
"float4 main_fragment(uniform sampler2D samp, float2 tex : TEXCOORD0) : COLOR\n"
|
||||
"{\n"
|
||||
" float4 col = tex2D(samp, tex);\n"
|
||||
" col.a *= opacity;\n"
|
||||
" return col;\n"
|
||||
"}";
|
||||
|
||||
void D3DVideo::overlay_render()
|
||||
{
|
||||
struct overlay_vertex
|
||||
|
Loading…
x
Reference in New Issue
Block a user