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
7eea8b93
Commit
7eea8b93
authored
Oct 16, 2006
by
Roderick Colenbrander
Committed by
Alexandre Julliard
Oct 17, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wgl: Move wglDeleteContext to gdi32.
parent
449e8557
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
12 deletions
+28
-12
driver.c
dlls/gdi/driver.c
+1
-0
gdi_private.h
dlls/gdi/gdi_private.h
+1
-0
opengl.c
dlls/gdi/opengl.c
+25
-0
opengl32.spec
dlls/opengl32/opengl32.spec
+1
-1
wgl.c
dlls/opengl32/wgl.c
+0
-11
No files found.
dlls/gdi/driver.c
View file @
7eea8b93
...
...
@@ -197,6 +197,7 @@ static struct graphics_driver *create_driver( HMODULE module )
/* OpenGL32 */
GET_FUNC
(
wglCreateContext
);
GET_FUNC
(
wglDeleteContext
);
GET_FUNC
(
wglMakeCurrent
);
GET_FUNC
(
wglShareLists
);
GET_FUNC
(
wglUseFontBitmapsA
);
...
...
dlls/gdi/gdi_private.h
View file @
7eea8b93
...
...
@@ -185,6 +185,7 @@ typedef struct tagDC_FUNCS
/* OpenGL32 */
HGLRC
(
*
pwglCreateContext
)(
PHYSDEV
);
BOOL
(
*
pwglDeleteContext
)(
HGLRC
);
BOOL
(
*
pwglMakeCurrent
)(
PHYSDEV
,
HGLRC
);
BOOL
(
*
pwglShareLists
)(
HGLRC
hglrc1
,
HGLRC
hglrc2
);
BOOL
(
*
pwglUseFontBitmapsA
)(
PHYSDEV
,
DWORD
,
DWORD
,
DWORD
);
...
...
dlls/gdi/opengl.c
View file @
7eea8b93
...
...
@@ -79,6 +79,31 @@ HGLRC WINAPI wglCreateContext(HDC hdc)
return
ret
;
}
/***********************************************************************
* wglDeleteContext (OPENGL32.@)
*/
BOOL
WINAPI
wglDeleteContext
(
HGLRC
hglrc
)
{
DC
*
dc
;
BOOL
ret
=
FALSE
;
OPENGL_Context
ctx
=
(
OPENGL_Context
)
hglrc
;
TRACE
(
"hglrc: (%p)
\n
"
,
hglrc
);
if
(
ctx
==
NULL
)
return
FALSE
;
/* Retrieve the HDC associated with the context to access the display driver */
dc
=
DC_GetDCPtr
(
ctx
->
hdc
);
if
(
!
dc
)
return
FALSE
;
if
(
!
dc
->
funcs
->
pwglDeleteContext
)
FIXME
(
" :stub
\n
"
);
else
ret
=
dc
->
funcs
->
pwglDeleteContext
(
hglrc
);
GDI_ReleaseObj
(
ctx
->
hdc
);
return
ret
;
}
/***********************************************************************
* wglGetCurrentContext (OPENGL32.@)
*/
...
...
dlls/opengl32/opengl32.spec
View file @
7eea8b93
...
...
@@ -378,7 +378,7 @@
@ stdcall wglCopyContext(long long long)
@ stdcall wglCreateContext(long) gdi32.wglCreateContext
@ stdcall wglCreateLayerContext(long long)
@ stdcall wglDeleteContext(long)
@ stdcall wglDeleteContext(long)
gdi32.wglDeleteContext
@ stdcall wglDescribeLayerPlane(long long long long ptr)
@ stdcall wglDescribePixelFormat(long long long ptr) gdi32.DescribePixelFormat
@ stdcall wglGetCurrentContext() gdi32.wglGetCurrentContext
...
...
dlls/opengl32/wgl.c
View file @
7eea8b93
...
...
@@ -47,7 +47,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(wgl);
WINE_DECLARE_DEBUG_CHANNEL
(
opengl
);
typedef
struct
wine_wgl_s
{
BOOL
WINAPI
(
*
p_wglDeleteContext
)(
HGLRC
hglrc
);
PROC
WINAPI
(
*
p_wglGetProcAddress
)(
LPCSTR
lpszProc
);
void
WINAPI
(
*
p_wglGetIntegerv
)(
GLenum
pname
,
GLint
*
params
);
...
...
@@ -148,15 +147,6 @@ BOOL WINAPI wglCopyContext(HGLRC hglrcSrc,
}
/***********************************************************************
* wglDeleteContext (OPENGL32.@)
*/
BOOL
WINAPI
wglDeleteContext
(
HGLRC
hglrc
)
{
TRACE
(
"(%p)
\n
"
,
hglrc
);
return
wine_wgl
.
p_wglDeleteContext
(
hglrc
);
}
/***********************************************************************
* wglDescribeLayerPlane (OPENGL32.@)
*/
BOOL
WINAPI
wglDescribeLayerPlane
(
HDC
hdc
,
...
...
@@ -622,7 +612,6 @@ static BOOL process_attach(void)
wine_tsx11_unlock_ptr
=
(
void
*
)
GetProcAddress
(
mod
,
"wine_tsx11_unlock"
);
/* Load WGL function pointers from winex11.drv */
wine_wgl
.
p_wglDeleteContext
=
(
void
*
)
GetProcAddress
(
mod
,
"wglDeleteContext"
);
wine_wgl
.
p_wglGetProcAddress
=
(
void
*
)
GetProcAddress
(
mod
,
"wglGetProcAddress"
);
/* Interal WGL function */
...
...
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