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
6396ad9e
Commit
6396ad9e
authored
Mar 11, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Mar 12, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: GL_MAX_TEXTURE_COORDS_ARB is not available without ARB_fragment_program.
parent
112e2e21
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
directx.c
dlls/wined3d/directx.c
+4
-3
No files found.
dlls/wined3d/directx.c
View file @
6396ad9e
...
...
@@ -2542,20 +2542,21 @@ static BOOL wined3d_adapter_init_gl_caps(struct wined3d_adapter *adapter)
glGetIntegerv
(
GL_MAX_TEXTURE_UNITS_ARB
,
&
gl_max
);
gl_info
->
limits
.
textures
=
min
(
MAX_TEXTURES
,
gl_max
);
TRACE_
(
d3d_caps
)(
"Max textures: %d.
\n
"
,
gl_info
->
limits
.
textures
);
glGetIntegerv
(
GL_MAX_TEXTURE_COORDS_ARB
,
&
gl_max
);
gl_info
->
limits
.
texture_coords
=
min
(
MAX_TEXTURES
,
gl_max
);
TRACE_
(
d3d_caps
)(
"Max texture coords: %d.
\n
"
,
gl_info
->
limits
.
texture_coords
);
if
(
gl_info
->
supported
[
ARB_FRAGMENT_PROGRAM
])
{
GLint
tmp
;
glGetIntegerv
(
GL_MAX_TEXTURE_COORDS_ARB
,
&
gl_max
);
gl_info
->
limits
.
texture_coords
=
min
(
MAX_TEXTURES
,
gl_max
);
glGetIntegerv
(
GL_MAX_TEXTURE_IMAGE_UNITS_ARB
,
&
tmp
);
gl_info
->
limits
.
fragment_samplers
=
min
(
MAX_FRAGMENT_SAMPLERS
,
tmp
);
}
else
{
gl_info
->
limits
.
texture_coords
=
max
(
gl_info
->
limits
.
texture_coords
,
gl_max
);
gl_info
->
limits
.
fragment_samplers
=
max
(
gl_info
->
limits
.
fragment_samplers
,
gl_max
);
}
TRACE_
(
d3d_caps
)(
"Max texture coords: %d.
\n
"
,
gl_info
->
limits
.
texture_coords
);
TRACE_
(
d3d_caps
)(
"Max fragment samplers: %d.
\n
"
,
gl_info
->
limits
.
fragment_samplers
);
if
(
gl_info
->
supported
[
ARB_VERTEX_SHADER
])
...
...
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