Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
37249243
Commit
37249243
authored
Aug 23, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Get rid of get_context_from_GLXContext.
parent
f36536f7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
14 deletions
+4
-14
opengl.c
dlls/winex11.drv/opengl.c
+4
-14
No files found.
dlls/winex11.drv/opengl.c
View file @
37249243
...
...
@@ -547,14 +547,6 @@ static inline void free_context(Wine_GLContext *context)
HeapFree
(
GetProcessHeap
(),
0
,
context
);
}
static
inline
Wine_GLContext
*
get_context_from_GLXContext
(
GLXContext
ctx
)
{
Wine_GLContext
*
ret
;
if
(
!
ctx
)
return
NULL
;
for
(
ret
=
context_list
;
ret
;
ret
=
ret
->
next
)
if
(
ctx
==
ret
->
ctx
)
break
;
return
ret
;
}
static
inline
BOOL
is_valid_context
(
Wine_GLContext
*
ctx
)
{
Wine_GLContext
*
ptr
;
...
...
@@ -1979,8 +1971,7 @@ static void WINAPI X11DRV_wglGetIntegerv(GLenum pname, GLint* params)
{
case
GL_DEPTH_BITS
:
{
GLXContext
gl_ctx
=
pglXGetCurrentContext
();
Wine_GLContext
*
ret
=
get_context_from_GLXContext
(
gl_ctx
);
Wine_GLContext
*
ctx
=
NtCurrentTeb
()
->
glContext
;
pglGetIntegerv
(
pname
,
params
);
/**
...
...
@@ -1988,7 +1979,7 @@ static void WINAPI X11DRV_wglGetIntegerv(GLenum pname, GLint* params)
* we only have the default wine desktop context,
* so if we have only a 24 depth say we have 32
*/
if
(
NULL
==
ret
&&
24
==
*
params
)
{
if
(
!
ctx
&&
*
params
==
24
)
{
*
params
=
32
;
}
TRACE
(
"returns GL_DEPTH_BITS as '%d'
\n
"
,
*
params
);
...
...
@@ -1996,10 +1987,9 @@ static void WINAPI X11DRV_wglGetIntegerv(GLenum pname, GLint* params)
}
case
GL_ALPHA_BITS
:
{
GLXContext
gl_ctx
=
pglXGetCurrentContext
();
Wine_GLContext
*
ret
=
get_context_from_GLXContext
(
gl_ctx
);
Wine_GLContext
*
ctx
=
NtCurrentTeb
()
->
glContext
;
pglXGetFBConfigAttrib
(
gdi_display
,
ret
->
fmt
->
fbconfig
,
GLX_ALPHA_SIZE
,
params
);
pglXGetFBConfigAttrib
(
gdi_display
,
ctx
->
fmt
->
fbconfig
,
GLX_ALPHA_SIZE
,
params
);
TRACE
(
"returns GL_ALPHA_BITS as '%d'
\n
"
,
*
params
);
break
;
}
...
...
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