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
8f3c98fd
Commit
8f3c98fd
authored
Feb 03, 2006
by
Vitaly Budovski
Committed by
Alexandre Julliard
Feb 03, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Fixed WINED3DRS_POINTSPRITEENABLE.
parent
dbff6d59
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
18 deletions
+19
-18
device.c
dlls/wined3d/device.c
+19
-18
No files found.
dlls/wined3d/device.c
View file @
8f3c98fd
...
@@ -3576,29 +3576,30 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, D3DRENDE
...
@@ -3576,29 +3576,30 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, D3DRENDE
return
D3DERR_INVALIDCALL
;
return
D3DERR_INVALIDCALL
;
}
}
case
WINED3DRS_POINTSPRITEENABLE
:
case
WINED3DRS_POINTSPRITEENABLE
:
{
/* TODO: NV_POINT_SPRITE */
/* TODO: NV_POINT_SPRITE */
if
(
GL_SUPPORT
(
ARB_POINT_SPRITE
))
{
if
(
!
GL_SUPPORT
(
ARB_POINT_SPRITE
))
{
if
(
Value
!=
FALSE
)
{
TRACE
(
"Point sprites not supported
\n
"
);
/* Doesn't work with GL_POINT_SMOOTH on on my ATI 9600, but then ATI drivers are buggered! */
break
;
glDisable
(
GL_POINT_SMOOTH
);
}
/* Centre the texture on the vertex */
VTRACE
(
"glTexEnvf( GL_POINT_SPRITE_ARB, GL_COORD_REPLACE_ARB, GL_TRUE)
\n
"
);
glTexEnvf
(
GL_POINT_SPRITE_ARB
,
GL_COORD_REPLACE_ARB
,
GL_TRUE
);
VTRACE
(
"glTexEnvf( GL_POINT_SPRITE_ARB, GL_COORD_REPLACE_ARB, GL_TRUE)
\n
"
);
/*
glTexEnvf
(
GL_POINT_SPRITE_ARB
,
GL_COORD_REPLACE_ARB
,
GL_TRUE
);
* Point sprites are always enabled. Value controls texture coordinate
checkGLcall
(
"glTexEnvf(...)"
);
* replacement mode. Must be set true for point sprites to use
VTRACE
(
"glEnable( GL_POINT_SPRITE_ARB )
\n
"
);
* textures.
glEnable
(
GL_POINT_SPRITE_ARB
);
*/
checkGLcall
(
"glEnable(...)"
);
glEnable
(
GL_POINT_SPRITE_ARB
);
checkGLcall
(
"glEnable(GL_POINT_SPRITE_ARB)"
);
if
(
Value
)
{
glTexEnvf
(
GL_POINT_SPRITE_ARB
,
GL_COORD_REPLACE_ARB
,
TRUE
);
checkGLcall
(
"glTexEnvf(GL_POINT_SPRITE, GL_COORD_REPLACE, TRUE)"
);
}
else
{
}
else
{
VTRACE
(
"glDisable( GL_POINT_SPRITE_ARB )
\n
"
);
glTexEnvf
(
GL_POINT_SPRITE_ARB
,
GL_COORD_REPLACE_ARB
,
FALSE
);
glDisable
(
GL_POINT_SPRITE_ARB
);
checkGLcall
(
"glTexEnvf(GL_POINT_SPRITE, GL_COORD_REPLACE, FALSE)"
);
checkGLcall
(
"glEnable(...)"
);
}
}
}
break
;
break
;
/* Unhandled yet...! */
}
case
WINED3DRS_EDGEANTIALIAS
:
case
WINED3DRS_EDGEANTIALIAS
:
{
{
if
(
Value
)
{
if
(
Value
)
{
...
...
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