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
5f05906f
Commit
5f05906f
authored
Mar 04, 2007
by
Stefan Dösinger
Committed by
Alexandre Julliard
Mar 06, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Store the number of aux buffers in the gl limits structure.
parent
ae57138e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
device.c
dlls/wined3d/device.c
+1
-4
directx.c
dlls/wined3d/directx.c
+4
-0
wined3d_gl.h
include/wine/wined3d_gl.h
+1
-0
No files found.
dlls/wined3d/device.c
View file @
5f05906f
...
@@ -1730,10 +1730,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Init3D(IWineD3DDevice *iface, WINED3DPR
...
@@ -1730,10 +1730,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Init3D(IWineD3DDevice *iface, WINED3DPR
case
ORM_BACKBUFFER
:
case
ORM_BACKBUFFER
:
{
{
GLint
auxBuffers
;
if
(
GL_LIMITS
(
aux_buffers
)
>
0
)
{
glGetIntegerv
(
GL_AUX_BUFFERS
,
&
auxBuffers
);
TRACE
(
"Got %d aux buffers
\n
"
,
auxBuffers
);
if
(
auxBuffers
>
0
)
{
TRACE
(
"Using auxilliary buffer for offscreen rendering
\n
"
);
TRACE
(
"Using auxilliary buffer for offscreen rendering
\n
"
);
This
->
offscreenBuffer
=
GL_AUX0
;
This
->
offscreenBuffer
=
GL_AUX0
;
}
else
{
}
else
{
...
...
dlls/wined3d/directx.c
View file @
5f05906f
...
@@ -546,6 +546,10 @@ BOOL IWineD3DImpl_FillGLCaps(IWineD3D *iface, Display* display) {
...
@@ -546,6 +546,10 @@ BOOL IWineD3DImpl_FillGLCaps(IWineD3D *iface, Display* display) {
gl_info
->
max_pointsize
=
gl_floatv
[
1
];
gl_info
->
max_pointsize
=
gl_floatv
[
1
];
TRACE_
(
d3d_caps
)(
"Maximum point size support - max point size=%f
\n
"
,
gl_floatv
[
1
]);
TRACE_
(
d3d_caps
)(
"Maximum point size support - max point size=%f
\n
"
,
gl_floatv
[
1
]);
glGetIntegerv
(
GL_AUX_BUFFERS
,
&
gl_max
);
gl_info
->
max_aux_buffers
=
gl_max
;
TRACE_
(
d3d_caps
)(
"Offscreen rendering support - number of aux buffers=%d
\n
"
,
gl_max
);
/* Parse the gl supported features, in theory enabling parts of our code appropriately */
/* Parse the gl supported features, in theory enabling parts of our code appropriately */
GL_Extensions
=
(
const
char
*
)
glGetString
(
GL_EXTENSIONS
);
GL_Extensions
=
(
const
char
*
)
glGetString
(
GL_EXTENSIONS
);
TRACE_
(
d3d_caps
)(
"GL_Extensions reported:
\n
"
);
TRACE_
(
d3d_caps
)(
"GL_Extensions reported:
\n
"
);
...
...
include/wine/wined3d_gl.h
View file @
5f05906f
...
@@ -1875,6 +1875,7 @@ typedef struct _WineD3D_GL_Info {
...
@@ -1875,6 +1875,7 @@ typedef struct _WineD3D_GL_Info {
float
max_pointsize
;
float
max_pointsize
;
UINT
max_blends
;
UINT
max_blends
;
UINT
max_anisotropy
;
UINT
max_anisotropy
;
UINT
max_aux_buffers
;
unsigned
max_vshader_constantsF
;
unsigned
max_vshader_constantsF
;
unsigned
max_pshader_constantsF
;
unsigned
max_pshader_constantsF
;
...
...
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