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
c4569d92
Commit
c4569d92
authored
Nov 10, 2005
by
Raphael Junqueira
Committed by
Alexandre Julliard
Nov 10, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Define GL_EXT_framebuffer_object and GL_EXT_pixelbuffer_object openGL
specs. Support Mesa GL_VERSION on parse.
parent
6affb1f1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
1 deletion
+37
-1
directx.c
dlls/wined3d/directx.c
+37
-1
wined3d_gl.h
include/wine/wined3d_gl.h
+0
-0
No files found.
dlls/wined3d/directx.c
View file @
c4569d92
...
...
@@ -244,6 +244,8 @@ static BOOL IWineD3DImpl_FillGLCaps(WineD3D_GL_Info *gl_info, Display* display)
gl_info
->
gl_vendor
=
VENDOR_NVIDIA
;
}
else
if
(
strstr
(
gl_string
,
"ATI"
))
{
gl_info
->
gl_vendor
=
VENDOR_ATI
;
}
else
if
(
strstr
(
gl_string
,
"Mesa"
))
{
gl_info
->
gl_vendor
=
VENDOR_MESA
;
}
else
{
gl_info
->
gl_vendor
=
VENDOR_WINE
;
}
...
...
@@ -317,6 +319,34 @@ static BOOL IWineD3DImpl_FillGLCaps(WineD3D_GL_Info *gl_info, Display* display)
}
break
;
case
VENDOR_MESA
:
gl_string_cursor
=
strstr
(
gl_string
,
"Mesa"
);
gl_string_cursor
=
strstr
(
gl_string_cursor
,
" "
);
while
(
*
gl_string_cursor
&&
' '
==
*
gl_string_cursor
)
++
gl_string_cursor
;
if
(
*
gl_string_cursor
)
{
char
tmp
[
16
];
int
cursor
=
0
;
while
(
*
gl_string_cursor
<=
'9'
&&
*
gl_string_cursor
>=
'0'
)
{
tmp
[
cursor
++
]
=
*
gl_string_cursor
;
++
gl_string_cursor
;
}
tmp
[
cursor
]
=
0
;
major
=
atoi
(
tmp
);
if
(
*
gl_string_cursor
!=
'.'
)
WARN_
(
d3d_caps
)(
"malformed GL_VERSION (%s)
\n
"
,
debugstr_a
(
gl_string
));
++
gl_string_cursor
;
cursor
=
0
;
while
(
*
gl_string_cursor
<=
'9'
&&
*
gl_string_cursor
>=
'0'
)
{
tmp
[
cursor
++
]
=
*
gl_string_cursor
;
++
gl_string_cursor
;
}
tmp
[
cursor
]
=
0
;
minor
=
atoi
(
tmp
);
}
break
;
default:
major
=
0
;
minor
=
9
;
...
...
@@ -456,8 +486,11 @@ static BOOL IWineD3DImpl_FillGLCaps(WineD3D_GL_Info *gl_info, Display* display)
}
else
if
(
strcmp
(
ThisExtn
,
"GLX_ARB_multisample"
)
==
0
)
{
TRACE_
(
d3d_caps
)(
" FOUND: ARB multisample support
\n
"
);
gl_info
->
supported
[
ARB_MULTISAMPLE
]
=
TRUE
;
}
else
if
(
strcmp
(
ThisExtn
,
"GL_ARB_pixel_buffer_object"
)
==
0
)
{
TRACE_
(
d3d_caps
)(
" FOUND: ARB Pixel Buffer support
\n
"
);
gl_info
->
supported
[
ARB_PIXEL_BUFFER_OBJECT
]
=
TRUE
;
}
else
if
(
strcmp
(
ThisExtn
,
"GL_ARB_point_sprite"
)
==
0
)
{
TRACE_
(
d3d_caps
)(
" FOUND: ARB point spri
nt
support
\n
"
);
TRACE_
(
d3d_caps
)(
" FOUND: ARB point spri
te
support
\n
"
);
gl_info
->
supported
[
ARB_POINT_SPRITE
]
=
TRUE
;
}
else
if
(
strstr
(
ThisExtn
,
"GL_ARB_vertex_program"
))
{
gl_info
->
vs_arb_version
=
VS_VERSION_11
;
...
...
@@ -480,6 +513,9 @@ static BOOL IWineD3DImpl_FillGLCaps(WineD3D_GL_Info *gl_info, Display* display)
}
else
if
(
strcmp
(
ThisExtn
,
"GL_EXT_fog_coord"
)
==
0
)
{
TRACE_
(
d3d_caps
)(
" FOUND: EXT Fog coord support
\n
"
);
gl_info
->
supported
[
EXT_FOG_COORD
]
=
TRUE
;
}
else
if
(
strcmp
(
ThisExtn
,
"GL_EXT_framebuffer_object"
)
==
0
)
{
TRACE_
(
d3d_caps
)(
" FOUND: EXT Frame Buffer Object support
\n
"
);
gl_info
->
supported
[
EXT_FRAMEBUFFER_OBJECT
]
=
TRUE
;
}
else
if
(
strcmp
(
ThisExtn
,
"GL_EXT_paletted_texture"
)
==
0
)
{
/* handle paletted texture extensions */
TRACE_
(
d3d_caps
)(
" FOUND: EXT Paletted texture support
\n
"
);
gl_info
->
supported
[
EXT_PALETTED_TEXTURE
]
=
TRUE
;
...
...
include/wine/wined3d_gl.h
View file @
c4569d92
This diff is collapsed.
Click to expand it.
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