Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
92e6e46c
Commit
92e6e46c
authored
Oct 14, 2006
by
Roderick Colenbrander
Committed by
Alexandre Julliard
Oct 16, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wgl: Move wglShareLists to gdi32.
parent
8c32dd77
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
11 deletions
+27
-11
driver.c
dlls/gdi/driver.c
+1
-0
gdi_private.h
dlls/gdi/gdi_private.h
+1
-0
opengl.c
dlls/gdi/opengl.c
+24
-0
opengl32.spec
dlls/opengl32/opengl32.spec
+1
-1
wgl.c
dlls/opengl32/wgl.c
+0
-10
No files found.
dlls/gdi/driver.c
View file @
92e6e46c
...
...
@@ -198,6 +198,7 @@ static struct graphics_driver *create_driver( HMODULE module )
/* OpenGL32 */
GET_FUNC
(
wglCreateContext
);
GET_FUNC
(
wglMakeCurrent
);
GET_FUNC
(
wglShareLists
);
GET_FUNC
(
wglUseFontBitmapsA
);
GET_FUNC
(
wglUseFontBitmapsW
);
#undef GET_FUNC
...
...
dlls/gdi/gdi_private.h
View file @
92e6e46c
...
...
@@ -186,6 +186,7 @@ typedef struct tagDC_FUNCS
/* OpenGL32 */
HGLRC
(
*
pwglCreateContext
)(
PHYSDEV
);
BOOL
(
*
pwglMakeCurrent
)(
PHYSDEV
,
HGLRC
);
BOOL
(
*
pwglShareLists
)(
HGLRC
hglrc1
,
HGLRC
hglrc2
);
BOOL
(
*
pwglUseFontBitmapsA
)(
PHYSDEV
,
DWORD
,
DWORD
,
DWORD
);
BOOL
(
*
pwglUseFontBitmapsW
)(
PHYSDEV
,
DWORD
,
DWORD
,
DWORD
);
}
DC_FUNCTIONS
;
...
...
dlls/gdi/opengl.c
View file @
92e6e46c
...
...
@@ -136,6 +136,30 @@ BOOL WINAPI wglMakeCurrent(HDC hdc, HGLRC hglrc)
}
/***********************************************************************
* wglShareLists (OPENGL32.@)
*/
BOOL
WINAPI
wglShareLists
(
HGLRC
hglrc1
,
HGLRC
hglrc2
)
{
DC
*
dc
;
BOOL
ret
=
FALSE
;
OPENGL_Context
ctx
=
(
OPENGL_Context
)
hglrc1
;
TRACE
(
"hglrc1: (%p); hglrc: (%p)
\n
"
,
hglrc1
,
hglrc2
);
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
->
pwglShareLists
)
FIXME
(
" :stub
\n
"
);
else
ret
=
dc
->
funcs
->
pwglShareLists
(
hglrc1
,
hglrc2
);
GDI_ReleaseObj
(
ctx
->
hdc
);
return
ret
;
}
/***********************************************************************
* wglUseFontBitmapsA (OPENGL32.@)
*/
BOOL
WINAPI
wglUseFontBitmapsA
(
HDC
hdc
,
DWORD
first
,
DWORD
count
,
DWORD
listBase
)
...
...
dlls/opengl32/opengl32.spec
View file @
92e6e46c
...
...
@@ -391,7 +391,7 @@
@ stdcall wglRealizeLayerPalette(long long long)
@ stdcall wglSetLayerPaletteEntries(long long long long ptr)
@ stdcall wglSetPixelFormat(long long ptr) gdi32.SetPixelFormat
@ stdcall wglShareLists(long long)
@ stdcall wglShareLists(long long)
gdi32.wglShareLists
@ stdcall wglSwapBuffers(long) gdi32.SwapBuffers
@ stdcall wglSwapLayerBuffers(long long)
@ stdcall wglUseFontBitmapsA(long long long long) gdi32.wglUseFontBitmapsA
...
...
dlls/opengl32/wgl.c
View file @
92e6e46c
...
...
@@ -49,7 +49,6 @@ WINE_DECLARE_DEBUG_CHANNEL(opengl);
typedef
struct
wine_wgl_s
{
BOOL
WINAPI
(
*
p_wglDeleteContext
)(
HGLRC
hglrc
);
PROC
WINAPI
(
*
p_wglGetProcAddress
)(
LPCSTR
lpszProc
);
BOOL
WINAPI
(
*
p_wglShareLists
)(
HGLRC
hglrc1
,
HGLRC
hglrc2
);
void
WINAPI
(
*
p_wglGetIntegerv
)(
GLenum
pname
,
GLint
*
params
);
}
wine_wgl_t
;
...
...
@@ -281,14 +280,6 @@ int WINAPI wglSetLayerPaletteEntries(HDC hdc,
}
/***********************************************************************
* wglShareLists (OPENGL32.@)
*/
BOOL
WINAPI
wglShareLists
(
HGLRC
hglrc1
,
HGLRC
hglrc2
)
{
TRACE
(
"(%p, %p)
\n
"
,
hglrc1
,
hglrc2
);
return
wine_wgl
.
p_wglShareLists
(
hglrc1
,
hglrc2
);
}
/***********************************************************************
* wglSwapLayerBuffers (OPENGL32.@)
*/
BOOL
WINAPI
wglSwapLayerBuffers
(
HDC
hdc
,
...
...
@@ -633,7 +624,6 @@ static BOOL process_attach(void)
/* Load WGL function pointers from winex11.drv */
wine_wgl
.
p_wglDeleteContext
=
(
void
*
)
GetProcAddress
(
mod
,
"wglDeleteContext"
);
wine_wgl
.
p_wglGetProcAddress
=
(
void
*
)
GetProcAddress
(
mod
,
"wglGetProcAddress"
);
wine_wgl
.
p_wglShareLists
=
(
void
*
)
GetProcAddress
(
mod
,
"wglShareLists"
);
/* Interal WGL function */
wine_wgl
.
p_wglGetIntegerv
=
(
void
*
)
GetProcAddress
(
mod
,
"wglGetIntegerv"
);
...
...
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