summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd
diff options
context:
space:
mode:
author Robbbert <robbbert@users.noreply.github.com>2013-01-28 04:07:25 +0000
committer Robbbert <robbbert@users.noreply.github.com>2013-01-28 04:07:25 +0000
commit7e9eae0e71d446642bf4ca9e3d1418594afedd23 (patch)
treebf90938f2e8cc63db1575b4f5128a6019fd9a683 /src/osd
parent9f6dea1c94f51016bdc87e1f25633aae0b7ee00a (diff)
Made a change to my original hlsl fix, this stops the crash with ctrl+alt+F12. However since hlsl doesn't work on my pc, can others do some testing?
Diffstat (limited to 'src/osd')
-rw-r--r--src/osd/windows/d3dhlsl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/osd/windows/d3dhlsl.c b/src/osd/windows/d3dhlsl.c
index b1e67e013fe..a69f7922c26 100644
--- a/src/osd/windows/d3dhlsl.c
+++ b/src/osd/windows/d3dhlsl.c
@@ -1059,11 +1059,13 @@ void hlsl_info::init_fsfx_quad(void *vertbuf)
int hlsl_info::create_resources(bool reset)
{
- initialized = true;
+ initialized = false;
if (!master_enable || !d3dintf->post_fx_available)
return 0;
+ initialized = true;
+
d3d_info *d3d = (d3d_info *)window->drawdata;
HRESULT result = (*d3dintf->device.get_render_target)(d3d->device, 0, &backbuffer);