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
3779153d
Commit
3779153d
authored
May 06, 2014
by
John Bauman
Committed by
Nicolas Capens
May 06, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix on XP
parent
cffcb1b3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
1 deletion
+19
-1
Surface.cpp
src/OpenGL ES 2.0/libEGL/Surface.cpp
+17
-1
libGLESv2.vcxproj
src/OpenGL ES 2.0/libGLESv2/libGLESv2.vcxproj
+2
-0
No files found.
src/OpenGL ES 2.0/libEGL/Surface.cpp
View file @
3779153d
...
...
@@ -28,6 +28,22 @@
namespace
egl
{
namespace
{
const
int
versionWindowsVista
=
MAKEWORD
(
0x00
,
0x06
);
const
int
versionWindows7
=
MAKEWORD
(
0x01
,
0x06
);
// Return the version of the operating system in a format suitable for ordering
// comparison.
int
getComparableOSVersion
()
{
DWORD
version
=
GetVersion
();
int
majorVersion
=
LOBYTE
(
LOWORD
(
version
));
int
minorVersion
=
HIBYTE
(
LOWORD
(
version
));
return
MAKEWORD
(
minorVersion
,
majorVersion
);
}
}
Surface
::
Surface
(
Display
*
display
,
const
Config
*
config
,
HWND
window
)
:
mDisplay
(
display
),
mConfig
(
config
),
mWindow
(
window
)
{
...
...
@@ -85,7 +101,7 @@ bool Surface::initialize()
// Modify present parameters for this window, if we are composited,
// to minimize the amount of queuing done by DWM between our calls to
// present and the actual screen.
if
(
mWindow
&&
(
LOWORD
(
GetVersion
())
>=
0x60
))
if
(
mWindow
&&
(
getComparableOSVersion
()
>=
versionWindowsVista
))
{
BOOL
isComposited
;
HRESULT
result
=
DwmIsCompositionEnabled
(
&
isComposited
);
...
...
src/OpenGL ES 2.0/libGLESv2/libGLESv2.vcxproj
View file @
3779153d
...
...
@@ -88,6 +88,7 @@
<DataExecutionPrevention>
</DataExecutionPrevention>
<TargetMachine>
MachineX86
</TargetMachine>
<AdditionalLibraryDirectories>
C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Lib\x86
</AdditionalLibraryDirectories>
</Link>
<PostBuildEvent>
<Command>
mkdir "$(ProjectDir)..\..\lib\$(Configuration)\"
...
...
@@ -126,6 +127,7 @@ copy "$(OutDir)libGLESv2.lib" "$(ProjectDir)..\..\lib\$(Configuration)\"
<DataExecutionPrevention>
</DataExecutionPrevention>
<TargetMachine>
MachineX86
</TargetMachine>
<AdditionalLibraryDirectories>
C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Lib\x86
</AdditionalLibraryDirectories>
</Link>
<PostBuildEvent>
<Command>
mkdir "$(ProjectDir)..\..\lib\$(Configuration)\"
...
...
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