Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
swiftshader
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
swiftshader
Commits
fefd4f17
Commit
fefd4f17
authored
May 06, 2014
by
John Bauman
Committed by
Nicolas Capens
May 06, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
Direct3DSwapChain9.cpp
src/D3D9/Direct3DSwapChain9.cpp
+1
-1
FrameBuffer.cpp
src/Main/FrameBuffer.cpp
+2
-3
No files found.
src/D3D9/Direct3DSwapChain9.cpp
View file @
fefd4f17
...
...
@@ -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
)
{
...
...
src/Main/FrameBuffer.cpp
View file @
fefd4f17
...
...
@@ -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
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment