Commit fefd4f17 by John Bauman Committed by Nicolas Capens

Switch SwiftShader to use GDI

We've seen some issues loading swiftshader, so use GDI to present to the screen. Review URL: https://chromereviews.googleplex.com/4156013
parent e226c87c
......@@ -346,7 +346,7 @@ namespace D3D9
lockable = presentParameters->Flags & D3DPRESENTFLAG_LOCKABLE_BACKBUFFER;
sw::Configurator ini("SwiftShader.ini");
int api = ini.getInteger("Testing", "FrameBufferAPI", 0);
int api = ini.getInteger("Testing", "FrameBufferAPI", 1);
if(api == 0)
{
......
......@@ -553,7 +553,7 @@ extern "C"
sw::FrameBuffer *createFrameBuffer(HWND windowHandle, int width, int height, bool fullscreen)
{
sw::Configurator ini("SwiftShader.ini");
int api = ini.getInteger("Testing", "FrameBufferAPI", 0);
int api = ini.getInteger("Testing", "FrameBufferAPI", 1);
if(api == 0)
{
......@@ -567,4 +567,4 @@ extern "C"
return 0;
}
}
\ No newline at end of file
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment