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
d8c67c34
Commit
d8c67c34
authored
Jan 03, 2007
by
Chris Robinson
Committed by
Alexandre Julliard
Jan 04, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: state_pointsprite should apply to all texture units.
parent
2d6e914b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
8 deletions
+22
-8
state.c
dlls/wined3d/state.c
+22
-8
No files found.
dlls/wined3d/state.c
View file @
d8c67c34
...
@@ -1053,6 +1053,9 @@ static void state_lastpixel(DWORD state, IWineD3DStateBlockImpl *stateblock) {
...
@@ -1053,6 +1053,9 @@ static void state_lastpixel(DWORD state, IWineD3DStateBlockImpl *stateblock) {
}
}
static
void
state_pointsprite
(
DWORD
state
,
IWineD3DStateBlockImpl
*
stateblock
)
{
static
void
state_pointsprite
(
DWORD
state
,
IWineD3DStateBlockImpl
*
stateblock
)
{
unsigned
int
i
;
int
val
;
/* TODO: NV_POINT_SPRITE */
/* TODO: NV_POINT_SPRITE */
if
(
!
GL_SUPPORT
(
ARB_POINT_SPRITE
))
{
if
(
!
GL_SUPPORT
(
ARB_POINT_SPRITE
))
{
TRACE
(
"Point sprites not supported
\n
"
);
TRACE
(
"Point sprites not supported
\n
"
);
...
@@ -1060,15 +1063,26 @@ static void state_pointsprite(DWORD state, IWineD3DStateBlockImpl *stateblock) {
...
@@ -1060,15 +1063,26 @@ static void state_pointsprite(DWORD state, IWineD3DStateBlockImpl *stateblock) {
}
}
if
(
stateblock
->
renderState
[
WINED3DRS_POINTSPRITEENABLE
])
{
if
(
stateblock
->
renderState
[
WINED3DRS_POINTSPRITEENABLE
])
{
glEnable
(
GL_POINT_SPRITE_ARB
);
val
=
GL_TRUE
;
checkGLcall
(
"glEnable(GL_POINT_SPRITE_ARB)"
);
glTexEnvf
(
GL_POINT_SPRITE_ARB
,
GL_COORD_REPLACE_ARB
,
TRUE
);
checkGLcall
(
"glTexEnvf(GL_POINT_SPRITE, GL_COORD_REPLACE, TRUE)"
);
}
else
{
}
else
{
glDisable
(
GL_POINT_SPRITE_ARB
);
val
=
GL_FALSE
;
checkGLcall
(
"glDisable(GL_POINT_SPRITE_ARB)"
);
}
glTexEnvf
(
GL_POINT_SPRITE_ARB
,
GL_COORD_REPLACE_ARB
,
FALSE
);
checkGLcall
(
"glTexEnvf(GL_POINT_SPRITE, GL_COORD_REPLACE, FALSE)"
);
for
(
i
=
0
;
i
<
GL_LIMITS
(
texture_stages
);
i
++
)
{
/* Note the WINED3DRS value applies to all textures, but GL has one
* per texture, so apply it now ready to be used!
*/
if
(
GL_SUPPORT
(
ARB_MULTITEXTURE
))
{
GL_EXTCALL
(
glActiveTextureARB
(
GL_TEXTURE0_ARB
+
i
));
checkGLcall
(
"glActiveTextureARB"
);
}
else
if
(
i
==
1
)
{
FIXME
(
"Program using multiple concurrent textures which this opengl implementation doesn't support
\n
"
);
break
;
}
glTexEnvi
(
GL_POINT_SPRITE_ARB
,
GL_COORD_REPLACE_ARB
,
val
);
checkGLcall
((
val
?
"glTexEnvi(GL_POINT_SPRITE, GL_COORD_REPLACE, GL_TRUE)"
:
"glTexEnvi(GL_POINT_SPRITE, GL_COORD_REPLACE, GL_FALSE)"
));
}
}
}
}
...
...
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