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
ac161817
Commit
ac161817
authored
Jan 23, 2006
by
H. Verbeet
Committed by
Alexandre Julliard
Jan 23, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d8: For render states D3DRS_POINTSPRITEENABLE and
D3DRS_MULTISAMPLEANTIALIAS, use GL_SUPPORT correctly.
parent
66770e4c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
25 deletions
+19
-25
device.c
dlls/d3d8/device.c
+19
-25
No files found.
dlls/d3d8/device.c
View file @
ac161817
...
@@ -3083,39 +3083,33 @@ HRESULT WINAPI IDirect3DDevice8Impl_SetRenderState(LPDIRECT3DDEVICE8 iface, D3
...
@@ -3083,39 +3083,33 @@ HRESULT WINAPI IDirect3DDevice8Impl_SetRenderState(LPDIRECT3DDEVICE8 iface, D3
}
}
case
D3DRS_POINTSPRITEENABLE
:
case
D3DRS_POINTSPRITEENABLE
:
{
{
if
(
Value
)
{
if
(
!
GL_SUPPORT
(
ARB_POINT_SPRITE
))
{
if
(
GL_SUPPORT
(
GL_ARB_point_sprite
))
{
TRACE
(
"Point sprites not supported
\n
"
);
glEnable
(
GL_POINT_SPRITE_ARB
);
break
;
checkGLcall
(
"glEnable GL_POINT_SPRITE_ARB"
);
}
}
else
{
TRACE
(
"Point sprites cannot be enabled in this version of opengl
\n
"
);
if
(
Value
)
{
}
glEnable
(
GL_POINT_SPRITE_ARB
);
checkGLcall
(
"glEnable GL_POINT_SPRITE_ARB"
);
}
else
{
}
else
{
if
(
GL_SUPPORT
(
GL_ARB_point_sprite
))
{
glDisable
(
GL_POINT_SPRITE_ARB
);
glDisable
(
GL_POINT_SPRITE_ARB
);
checkGLcall
(
"glDisable GL_POINT_SPRITE_ARB"
);
checkGLcall
(
"glDisable GL_POINT_SPRITE_ARB"
);
}
else
{
TRACE
(
"Point sprites cannot be disabled in this version of opengl
\n
"
);
}
}
}
break
;
break
;
}
}
case
D3DRS_MULTISAMPLEANTIALIAS
:
case
D3DRS_MULTISAMPLEANTIALIAS
:
{
{
if
(
!
GL_SUPPORT
(
ARB_MULTISAMPLE
))
{
TRACE
(
"Multisample antialiasing not supported
\n
"
);
break
;
}
if
(
Value
)
{
if
(
Value
)
{
if
(
GL_SUPPORT
(
GL_ARB_multisample
))
{
glEnable
(
GL_MULTISAMPLE_ARB
);
glEnable
(
GL_MULTISAMPLE_ARB
);
checkGLcall
(
"glEnable GL_MULTISAMPLE_ARB"
);
checkGLcall
(
"glEnable GL_MULTISAMPLE_ARB"
);
}
else
{
TRACE
(
"Multisample antialiasing cannot be enabled in this version of opengl
\n
"
);
}
}
else
{
}
else
{
if
(
GL_SUPPORT
(
GL_ARB_multisample
))
{
glDisable
(
GL_MULTISAMPLE_ARB
);
glDisable
(
GL_MULTISAMPLE_ARB
);
checkGLcall
(
"glDisable GL_MULTISAMPLE_ARB"
);
checkGLcall
(
"glDisable GL_MULTISAMPLE_ARB"
);
}
else
{
TRACE
(
"Multisample antialiasing cannot be disabled in this version of opengl
\n
"
);
}
}
}
break
;
break
;
}
}
...
...
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