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
31d1417c
Commit
31d1417c
authored
May 24, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
May 24, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Set the nvidia_texture_shader.c GLINFO_LOCATION to *gl_info.
parent
08c783a8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
nvidia_texture_shader.c
dlls/wined3d/nvidia_texture_shader.c
+4
-3
No files found.
dlls/wined3d/nvidia_texture_shader.c
View file @
31d1417c
...
...
@@ -28,7 +28,7 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
d3d
);
#define GLINFO_LOCATION
stateblock->device->adapter->gl_info
#define GLINFO_LOCATION
(*gl_info)
/* GL locking for state handlers is done by the caller. */
...
...
@@ -137,7 +137,6 @@ void set_tex_op_nvrc(IWineD3DDevice *iface, BOOL is_alpha, int stage, WINED3DTEX
GLenum
portion
=
is_alpha
?
GL_ALPHA
:
GL_RGB
;
GLenum
target
=
GL_COMBINER0_NV
+
stage
;
GLenum
output
;
IWineD3DStateBlockImpl
*
stateblock
=
This
->
stateBlock
;
/* For GLINFO_LOCATION */
TRACE
(
"stage %d, is_alpha %d, op %s, arg1 %#x, arg2 %#x, arg3 %#x, texture_idx %d
\n
"
,
stage
,
is_alpha
,
debug_d3dtop
(
op
),
arg1
,
arg2
,
arg3
,
texture_idx
);
...
...
@@ -579,6 +578,7 @@ static void nvts_bumpenvmat(DWORD state, IWineD3DStateBlockImpl *stateblock, str
{
DWORD
stage
=
(
state
-
STATE_TEXTURESTAGE
(
0
,
0
))
/
(
WINED3D_HIGHEST_TEXTURE_STATE
+
1
);
DWORD
mapped_stage
=
stateblock
->
device
->
texUnitMap
[
stage
+
1
];
const
struct
wined3d_gl_info
*
gl_info
=
context
->
gl_info
;
float
mat
[
2
][
2
];
/* Direct3D sets the matrix in the stage reading the perturbation map. The result is used to
...
...
@@ -587,7 +587,7 @@ static void nvts_bumpenvmat(DWORD state, IWineD3DStateBlockImpl *stateblock, str
* map is read from a specified source stage(always stage - 1 for d3d). Thus set the matrix
* for stage + 1. Keep the nvrc tex unit mapping in mind too
*/
if
(
mapped_stage
<
context
->
gl_info
->
limits
.
textures
)
if
(
mapped_stage
<
gl_info
->
limits
.
textures
)
{
GL_EXTCALL
(
glActiveTextureARB
(
GL_TEXTURE0_ARB
+
mapped_stage
));
checkGLcall
(
"GL_EXTCALL(glActiveTextureARB(GL_TEXTURE0_ARB + mapped_stage))"
);
...
...
@@ -606,6 +606,7 @@ static void nvts_bumpenvmat(DWORD state, IWineD3DStateBlockImpl *stateblock, str
static
void
nvrc_texfactor
(
DWORD
state
,
IWineD3DStateBlockImpl
*
stateblock
,
struct
wined3d_context
*
context
)
{
const
struct
wined3d_gl_info
*
gl_info
=
context
->
gl_info
;
float
col
[
4
];
D3DCOLORTOGLFLOAT4
(
stateblock
->
renderState
[
WINED3DRS_TEXTUREFACTOR
],
col
);
GL_EXTCALL
(
glCombinerParameterfvNV
(
GL_CONSTANT_COLOR0_NV
,
&
col
[
0
]));
...
...
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