Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
angle
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
angle
Commits
1a1fe249
Commit
1a1fe249
authored
Sep 26, 2011
by
daniel@transgaming.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sort EGL extension string
Trac #18320 Signed-off-by: Nicolas Capens git-svn-id:
https://angleproject.googlecode.com/svn/trunk@768
736b8ea6-26fd-11df-bfd4-992fa37f6226
parent
8440e3f0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
version.h
src/common/version.h
+1
-1
Display.cpp
src/libEGL/Display.cpp
+10
-3
No files found.
src/common/version.h
View file @
1a1fe249
#define MAJOR_VERSION 0
#define MAJOR_VERSION 0
#define MINOR_VERSION 0
#define MINOR_VERSION 0
#define BUILD_VERSION 0
#define BUILD_VERSION 0
#define BUILD_REVISION 76
7
#define BUILD_REVISION 76
8
#define STRINGIFY(x) #x
#define STRINGIFY(x) #x
#define MACRO_STRINGIFY(x) STRINGIFY(x)
#define MACRO_STRINGIFY(x) STRINGIFY(x)
...
...
src/libEGL/Display.cpp
View file @
1a1fe249
...
@@ -943,17 +943,24 @@ D3DPRESENT_PARAMETERS Display::getDefaultPresentParameters()
...
@@ -943,17 +943,24 @@ D3DPRESENT_PARAMETERS Display::getDefaultPresentParameters()
void
Display
::
initExtensionString
()
void
Display
::
initExtensionString
()
{
{
mExtensionString
+=
"EGL_ANGLE_query_surface_pointer "
;
HMODULE
swiftShader
=
GetModuleHandle
(
TEXT
(
"swiftshader_d3d9.dll"
));
HMODULE
swiftShader
=
GetModuleHandle
(
TEXT
(
"swiftshader_d3d9.dll"
));
bool
isd3d9ex
=
isD3d9ExDevice
();
mExtensionString
=
""
;
if
(
isd3d9ex
)
{
mExtensionString
+=
"EGL_ANGLE_d3d_share_handle_client_buffer "
;
}
mExtensionString
+=
"EGL_ANGLE_query_surface_pointer "
;
if
(
swiftShader
)
if
(
swiftShader
)
{
{
mExtensionString
+=
"EGL_ANGLE_software_display "
;
mExtensionString
+=
"EGL_ANGLE_software_display "
;
}
}
if
(
is
D3d9ExDevice
()
)
{
if
(
is
d3d9ex
)
{
mExtensionString
+=
"EGL_ANGLE_surface_d3d_texture_2d_share_handle "
;
mExtensionString
+=
"EGL_ANGLE_surface_d3d_texture_2d_share_handle "
;
mExtensionString
+=
"EGL_ANGLE_d3d_share_handle_client_buffer "
;
}
}
std
::
string
::
size_type
end
=
mExtensionString
.
find_last_not_of
(
' '
);
std
::
string
::
size_type
end
=
mExtensionString
.
find_last_not_of
(
' '
);
...
...
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