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
53e38860
Commit
53e38860
authored
Nov 05, 2014
by
Nicolas Capens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid resetting the EGL error code on client context retrieval.
BUG=18208531 Change-Id: I0246a6fcfdeefd8c84a28c3d86723d50d3f0cbac
parent
e2540106
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
48 additions
and
14 deletions
+48
-14
libEGL.def
src/OpenGL/libEGL/libEGL.def
+6
-2
main.cpp
src/OpenGL/libEGL/main.cpp
+14
-1
main.cpp
src/OpenGL/libGLES_CM/main.cpp
+2
-2
main.cpp
src/OpenGL/libGLESv2/main.cpp
+2
-2
libEGL.cpp
src/Radiance/libEGL/libEGL.cpp
+2
-2
libEGL.def
src/Radiance/libEGL/libEGL.def
+6
-2
main.cpp
src/Radiance/libEGL/main.cpp
+14
-1
main.cpp
src/Radiance/libRAD/main.cpp
+2
-2
No files found.
src/OpenGL/libEGL/libEGL.def
View file @
53e38860
...
...
@@ -33,4 +33,8 @@ EXPORTS
eglTerminate @4
eglWaitClient @16
eglWaitGL @30
eglWaitNative @31
\ No newline at end of file
eglWaitNative @31
; Functions that don't change the error code, for use by client APIs
clientGetCurrentContext
clientGetCurrentDisplay
\ No newline at end of file
src/OpenGL/libEGL/main.cpp
View file @
53e38860
...
...
@@ -255,7 +255,7 @@ void setCurrentContext(EGLContext ctx)
current
->
context
=
ctx
;
}
EGL
Display
getCurrentContext
()
EGL
Context
getCurrentContext
()
{
Current
*
current
=
eglGetCurrent
();
...
...
@@ -318,6 +318,19 @@ void error(EGLint errorCode)
}
}
extern
"C"
{
EGLContext
clientGetCurrentContext
()
{
return
egl
::
getCurrentContext
();
}
EGLContext
clientGetCurrentDisplay
()
{
return
egl
::
getCurrentDisplay
();
}
}
namespace
es1
{
egl
::
Context
*
(
*
createContext
)(
const
egl
::
Config
*
config
,
const
egl
::
Context
*
shareContext
)
=
0
;
...
...
src/OpenGL/libGLES_CM/main.cpp
View file @
53e38860
...
...
@@ -50,8 +50,8 @@ CONSTRUCTOR static bool glAttachProcess()
#endif
libEGL
=
loadLibrary
(
libEGL_lib
);
egl
::
getCurrentContext
=
(
egl
::
Context
*
(
*
)())
getProcAddress
(
libEGL
,
"
egl
GetCurrentContext"
);
egl
::
getCurrentDisplay
=
(
egl
::
Display
*
(
*
)())
getProcAddress
(
libEGL
,
"
egl
GetCurrentDisplay"
);
egl
::
getCurrentContext
=
(
egl
::
Context
*
(
*
)())
getProcAddress
(
libEGL
,
"
client
GetCurrentContext"
);
egl
::
getCurrentDisplay
=
(
egl
::
Display
*
(
*
)())
getProcAddress
(
libEGL
,
"
client
GetCurrentDisplay"
);
return
libEGL
!=
0
;
}
...
...
src/OpenGL/libGLESv2/main.cpp
View file @
53e38860
...
...
@@ -50,8 +50,8 @@ CONSTRUCTOR static bool glAttachProcess()
#endif
libEGL
=
loadLibrary
(
libEGL_lib
);
egl
::
getCurrentContext
=
(
egl
::
Context
*
(
*
)())
getProcAddress
(
libEGL
,
"
egl
GetCurrentContext"
);
egl
::
getCurrentDisplay
=
(
egl
::
Display
*
(
*
)())
getProcAddress
(
libEGL
,
"
egl
GetCurrentDisplay"
);
egl
::
getCurrentContext
=
(
egl
::
Context
*
(
*
)())
getProcAddress
(
libEGL
,
"
client
GetCurrentContext"
);
egl
::
getCurrentDisplay
=
(
egl
::
Display
*
(
*
)())
getProcAddress
(
libEGL
,
"
client
GetCurrentDisplay"
);
#if defined(_WIN32)
const
char
*
libGLES_CM_lib
[]
=
{
"libGLES_CM.dll"
,
"libGLES_CM_translator.dll"
};
...
...
src/Radiance/libEGL/libEGL.cpp
View file @
53e38860
No preview for this file type
src/Radiance/libEGL/libEGL.def
View file @
53e38860
...
...
@@ -33,4 +33,8 @@ EXPORTS
eglTerminate @4
eglWaitClient @16
eglWaitGL @30
eglWaitNative @31
\ No newline at end of file
eglWaitNative @31
; Functions that don't change the error code, for use by client APIs
clientGetCurrentContext
clientGetCurrentDisplay
\ No newline at end of file
src/Radiance/libEGL/main.cpp
View file @
53e38860
...
...
@@ -237,7 +237,7 @@ void setCurrentContext(EGLContext ctx)
current
->
context
=
ctx
;
}
EGL
Display
getCurrentContext
()
EGL
Context
getCurrentContext
()
{
Current
*
current
=
eglGetCurrent
();
...
...
@@ -300,6 +300,19 @@ void error(EGLint errorCode)
}
}
extern
"C"
{
EGLContext
clientGetCurrentContext
()
{
return
egl
::
getCurrentContext
();
}
EGLContext
clientGetCurrentDisplay
()
{
return
egl
::
getCurrentDisplay
();
}
}
namespace
rad
{
egl
::
Context
*
(
*
createContext
)(
const
egl
::
Config
*
config
,
const
egl
::
Context
*
shareContext
)
=
0
;
...
...
src/Radiance/libRAD/main.cpp
View file @
53e38860
...
...
@@ -50,8 +50,8 @@ CONSTRUCTOR static bool glAttachProcess()
#endif
libEGL
=
loadLibrary
(
libEGL_lib
);
egl
::
getCurrentContext
=
(
egl
::
Context
*
(
*
)())
getProcAddress
(
libEGL
,
"
egl
GetCurrentContext"
);
egl
::
getCurrentDisplay
=
(
egl
::
Display
*
(
*
)())
getProcAddress
(
libEGL
,
"
egl
GetCurrentDisplay"
);
egl
::
getCurrentContext
=
(
egl
::
Context
*
(
*
)())
getProcAddress
(
libEGL
,
"
client
GetCurrentContext"
);
egl
::
getCurrentDisplay
=
(
egl
::
Display
*
(
*
)())
getProcAddress
(
libEGL
,
"
client
GetCurrentDisplay"
);
return
libEGL
!=
0
;
}
...
...
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