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
2e9362d0
Commit
2e9362d0
authored
Jul 30, 2009
by
Stefan Dösinger
Committed by
Alexandre Julliard
Aug 05, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: ARB clipplane init needs the helper constant.
parent
5b540106
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
arb_program_shader.c
dlls/wined3d/arb_program_shader.c
+9
-8
No files found.
dlls/wined3d/arb_program_shader.c
View file @
2e9362d0
...
...
@@ -49,11 +49,18 @@ static BOOL need_mova_const(IWineD3DBaseShader *shader, const struct wined3d_gl_
return
!
GL_SUPPORT
(
NV_VERTEX_PROGRAM2_OPTION
);
}
/* Returns TRUE if result.clip from GL_NV_vertex_program2 should be used and FALSE otherwise */
static
inline
BOOL
use_nv_clip
(
const
struct
wined3d_gl_info
*
gl_info
)
{
return
GL_SUPPORT
(
NV_VERTEX_PROGRAM2_OPTION
);
}
static
BOOL
need_helper_const
(
const
struct
wined3d_gl_info
*
gl_info
)
{
if
(
!
GL_SUPPORT
(
NV_VERTEX_PROGRAM
)
/* Need to init colors. */
||
gl_info
->
quirks
&
WINED3D_QUIRK_ARB_VS_OFFSET_LIMIT
/* Load the immval offset. */
||
gl_info
->
quirks
&
WINED3D_QUIRK_SET_TEXCOORD_W
)
/* Have to init texcoords. */
||
gl_info
->
quirks
&
WINED3D_QUIRK_ARB_VS_OFFSET_LIMIT
/* Load the immval offset. */
||
gl_info
->
quirks
&
WINED3D_QUIRK_SET_TEXCOORD_W
/* Have to init texcoords. */
||
(
!
use_nv_clip
(
gl_info
))
/* Init the clip texcoord */
)
{
return
TRUE
;
}
...
...
@@ -76,12 +83,6 @@ static inline BOOL ffp_clip_emul(IWineD3DStateBlockImpl *stateblock)
return
stateblock
->
lowest_disabled_stage
<
7
;
}
/* Returns TRUE if result.clip from GL_NV_vertex_program2 should be used and FALSE otherwise */
static
inline
BOOL
use_nv_clip
(
const
struct
wined3d_gl_info
*
gl_info
)
{
return
GL_SUPPORT
(
NV_VERTEX_PROGRAM2_OPTION
);
}
/* Internally used shader constants. Applications can use constants 0 to GL_LIMITS(vshader_constantsF) - 1,
* so upload them above that
*/
...
...
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