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
46bbcd67
Commit
46bbcd67
authored
Jul 15, 2022
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 15, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Don't use __wine_get_wgl_driver.
parent
89e7dc3a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
25 deletions
+1
-25
Makefile.in
dlls/wined3d/Makefile.in
+1
-1
adapter_gl.c
dlls/wined3d/adapter_gl.c
+0
-18
wined3d_private.h
dlls/wined3d/wined3d_private.h
+0
-6
No files found.
dlls/wined3d/Makefile.in
View file @
46bbcd67
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
MODULE
=
wined3d.dll
IMPORTLIB
=
wined3d
IMPORTS
=
$(VKD3D_PE_LIBS)
dxguid opengl32 user32 gdi32 advapi32
win32u
IMPORTS
=
$(VKD3D_PE_LIBS)
dxguid opengl32 user32 gdi32 advapi32
EXTRAINCL
=
$(VKD3D_PE_CFLAGS)
C_SRCS
=
\
...
...
dlls/wined3d/adapter_gl.c
View file @
46bbcd67
...
...
@@ -2756,12 +2756,6 @@ static void load_gl_funcs(struct wined3d_gl_info *gl_info)
USE_GL_FUNC
(
glVertexAttribPointer
)
/* OpenGL 2.0 */
#undef USE_GL_FUNC
#ifndef USE_WIN32_OPENGL
/* hack: use the functions directly from the TEB table to bypass the thunks */
/* note that we still need the above wglGetProcAddress calls to initialize the table */
gl_info
->
gl_ops
.
ext
=
((
struct
opengl_funcs
*
)
NtCurrentTeb
()
->
glTable
)
->
ext
;
#endif
#define MAP_GL_FUNCTION(core_func, ext_func) \
do \
{ \
...
...
@@ -5312,7 +5306,6 @@ static BOOL wined3d_adapter_gl_init(struct wined3d_adapter_gl *adapter_gl,
return
FALSE
;
/* Dynamically load all GL core functions */
#ifdef USE_WIN32_OPENGL
{
HMODULE
mod_gl
=
GetModuleHandleA
(
"opengl32.dll"
);
#define USE_GL_FUNC(f) gl_info->gl_ops.gl.p_##f = (void *)GetProcAddress(mod_gl, #f);
...
...
@@ -5321,17 +5314,6 @@ static BOOL wined3d_adapter_gl_init(struct wined3d_adapter_gl *adapter_gl,
gl_info
->
gl_ops
.
wgl
.
p_wglSwapBuffers
=
(
void
*
)
GetProcAddress
(
mod_gl
,
"wglSwapBuffers"
);
gl_info
->
gl_ops
.
wgl
.
p_wglGetPixelFormat
=
(
void
*
)
GetProcAddress
(
mod_gl
,
"wglGetPixelFormat"
);
}
#else
/* To bypass the opengl32 thunks retrieve functions from the WGL driver instead of opengl32 */
{
HDC
hdc
=
GetDC
(
0
);
const
struct
opengl_funcs
*
wgl_driver
=
__wine_get_wgl_driver
(
hdc
,
WINE_WGL_DRIVER_VERSION
);
ReleaseDC
(
0
,
hdc
);
if
(
!
wgl_driver
||
wgl_driver
==
(
void
*
)
-
1
)
return
FALSE
;
gl_info
->
gl_ops
.
wgl
=
wgl_driver
->
wgl
;
gl_info
->
gl_ops
.
gl
=
wgl_driver
->
gl
;
}
#endif
gl_info
->
p_glEnableWINE
=
gl_info
->
gl_ops
.
gl
.
p_glEnable
;
gl_info
->
p_glDisableWINE
=
gl_info
->
gl_ops
.
gl
.
p_glDisable
;
...
...
dlls/wined3d/wined3d_private.h
View file @
46bbcd67
...
...
@@ -25,13 +25,7 @@
#ifndef __WINE_WINED3D_PRIVATE_H
#define __WINE_WINED3D_PRIVATE_H
#define USE_WIN32_OPENGL
#ifdef USE_WIN32_OPENGL
#define WINE_GLAPI __stdcall
#else
#define WINE_GLAPI
#endif
#include <assert.h>
#include <stdarg.h>
...
...
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