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
b2331ec7
Commit
b2331ec7
authored
Jul 06, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Jul 06, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of the unused gl_version and glx_version fields.
parent
966f8f45
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
7 deletions
+4
-7
directx.c
dlls/wined3d/directx.c
+4
-3
wined3d_gl.h
dlls/wined3d/wined3d_gl.h
+0
-4
No files found.
dlls/wined3d/directx.c
View file @
b2331ec7
...
...
@@ -471,6 +471,7 @@ static BOOL IWineD3DImpl_FillGLCaps(WineD3D_GL_Info *gl_info) {
unsigned
i
;
HDC
hdc
;
unsigned
int
vidmem
=
0
;
DWORD
gl_version
;
TRACE_
(
d3d_caps
)(
"(%p)
\n
"
,
gl_info
);
...
...
@@ -539,7 +540,7 @@ static BOOL IWineD3DImpl_FillGLCaps(WineD3D_GL_Info *gl_info) {
minor
=
atoi
(
gl_string_cursor
);
TRACE_
(
d3d_caps
)(
"Found OpenGL version: %d.%d.
\n
"
,
major
,
minor
);
gl_
info
->
gl_
version
=
MAKEDWORD_VERSION
(
major
,
minor
);
gl_version
=
MAKEDWORD_VERSION
(
major
,
minor
);
/* Now parse the driver specific string which we'll report to the app. */
switch
(
gl_info
->
gl_vendor
)
...
...
@@ -765,7 +766,7 @@ static BOOL IWineD3DImpl_FillGLCaps(WineD3D_GL_Info *gl_info) {
{ \
DWORD ver = ver_for_ext(ext); \
if (gl_info->supported[ext]) gl_info->pfn = (type)pwglGetProcAddress(#pfn); \
else if (ver && ver <= gl_
info->gl_
version) gl_info->pfn = (type)pwglGetProcAddress(#replace); \
else if (ver && ver <= gl_version) gl_info->pfn = (type)pwglGetProcAddress(#replace); \
else gl_info->pfn = NULL; \
}
GL_EXT_FUNCS_GEN
;
...
...
@@ -783,7 +784,7 @@ static BOOL IWineD3DImpl_FillGLCaps(WineD3D_GL_Info *gl_info) {
for
(
i
=
0
;
i
<
(
sizeof
(
EXTENSION_MAP
)
/
sizeof
(
*
EXTENSION_MAP
));
++
i
)
{
if
(
!
gl_info
->
supported
[
EXTENSION_MAP
[
i
].
extension
]
&&
EXTENSION_MAP
[
i
].
version
<=
gl_
info
->
gl_
version
&&
EXTENSION_MAP
[
i
].
version
)
&&
EXTENSION_MAP
[
i
].
version
<=
gl_version
&&
EXTENSION_MAP
[
i
].
version
)
{
TRACE_
(
d3d_caps
)(
" GL CORE: %s support.
\n
"
,
EXTENSION_MAP
[
i
].
extension_string
);
gl_info
->
supported
[
EXTENSION_MAP
[
i
].
extension
]
=
TRUE
;
...
...
dlls/wined3d/wined3d_gl.h
View file @
b2331ec7
...
...
@@ -3949,10 +3949,6 @@ typedef BOOL (WINAPI * WINED3D_PFNWGLSETPIXELFORMATWINE) (HDC hdc, int iPixelFor
#define USE_GL_FUNC(type, pfn, ext, replace) type pfn;
typedef
struct
_WineD3D_GL_Info
{
DWORD
glx_version
;
DWORD
gl_version
;
GL_Vendors
gl_vendor
;
GL_Cards
gl_card
;
UINT
vidmem
;
...
...
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