From 077296b9bae3db621cc3ec7b1805f4ea29c84d12 Mon Sep 17 00:00:00 2001 From: zeromus Date: Tue, 13 Oct 2015 00:25:09 -0500 Subject: [PATCH] reduce shader level requirements for basic d3d display method functionality --- .../BizHawk.Bizware.BizwareGL.SlimDX/IGL_SlimDX9.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Bizware/BizHawk.Bizware.BizwareGL.SlimDX/IGL_SlimDX9.cs b/Bizware/BizHawk.Bizware.BizwareGL.SlimDX/IGL_SlimDX9.cs index 27ee3d6cbf..f9bdd85020 100644 --- a/Bizware/BizHawk.Bizware.BizwareGL.SlimDX/IGL_SlimDX9.cs +++ b/Bizware/BizHawk.Bizware.BizwareGL.SlimDX/IGL_SlimDX9.cs @@ -184,7 +184,10 @@ namespace BizHawk.Bizware.BizwareGL.Drivers.SlimDX try { //cgc can create shaders that will need backwards compatibility... - bytecode = d3d9.ShaderBytecode.Compile(source, null, null, entry, "ps_3_0", ShaderFlags.EnableBackwardsCompatibility, out errors); + string profile = "ps_1_0"; + if (cg) + profile = "ps_3_0"; //todo - smarter logic somehow + bytecode = d3d9.ShaderBytecode.Compile(source, null, null, entry, profile, ShaderFlags.EnableBackwardsCompatibility, out errors); } catch(Exception ex) { @@ -225,7 +228,10 @@ namespace BizHawk.Bizware.BizwareGL.Drivers.SlimDX try { //cgc can create shaders that will need backwards compatibility... - bytecode = d3d9.ShaderBytecode.Compile(source, null, null, entry, "vs_3_0", ShaderFlags.EnableBackwardsCompatibility, out errors); + string profile = "vs_1_1"; + if (cg) + profile = "vs_3_0"; //todo - smarter logic somehow + bytecode = d3d9.ShaderBytecode.Compile(source, null, null, entry, profile, ShaderFlags.EnableBackwardsCompatibility, out errors); } catch (Exception ex) {