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
810231c5
Commit
810231c5
authored
Jun 21, 2004
by
Christian Costa
Committed by
Alexandre Julliard
Jun 21, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some more texture ops fixes.
parent
0118c8ba
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
10 deletions
+40
-10
utils.c
dlls/d3d8/utils.c
+40
-10
No files found.
dlls/d3d8/utils.c
View file @
810231c5
...
...
@@ -1654,8 +1654,14 @@ void set_tex_op(LPDIRECT3DDEVICE8 iface, BOOL isAlpha, int Stage, D3DTEXTUREOP o
checkGLcall
(
"GL_TEXTURE_ENV, comb_target, GL_MODULATE_ADD_ATI"
);
glTexEnvi
(
GL_TEXTURE_ENV
,
src0_target
,
src1
);
checkGLcall
(
"GL_TEXTURE_ENV, src0_target, src1"
);
glTexEnvi
(
GL_TEXTURE_ENV
,
opr0_target
,
GL_SRC_ALPHA
);
checkGLcall
(
"GL_TEXTURE_ENV, opr0_target, GL_SRC_APHA"
);
switch
(
opr1
)
{
case
GL_SRC_COLOR
:
opr
=
GL_SRC_ALPHA
;
break
;
case
GL_ONE_MINUS_SRC_COLOR
:
opr
=
GL_ONE_MINUS_SRC_ALPHA
;
break
;
case
GL_SRC_ALPHA
:
opr
=
GL_SRC_ALPHA
;
break
;
case
GL_ONE_MINUS_SRC_ALPHA
:
opr
=
GL_ONE_MINUS_SRC_ALPHA
;
break
;
}
glTexEnvi
(
GL_TEXTURE_ENV
,
opr0_target
,
opr
);
checkGLcall
(
"GL_TEXTURE_ENV, opr0_target, opr"
);
glTexEnvi
(
GL_TEXTURE_ENV
,
src1_target
,
src1
);
checkGLcall
(
"GL_TEXTURE_ENV, src1_target, src1"
);
glTexEnvi
(
GL_TEXTURE_ENV
,
opr1_target
,
opr1
);
...
...
@@ -1679,8 +1685,14 @@ void set_tex_op(LPDIRECT3DDEVICE8 iface, BOOL isAlpha, int Stage, D3DTEXTUREOP o
checkGLcall
(
"GL_TEXTURE_ENV, opr0_target, opr1"
);
glTexEnvi
(
GL_TEXTURE_ENV
,
src1_target
,
src1
);
checkGLcall
(
"GL_TEXTURE_ENV, src1_target, src1"
);
glTexEnvi
(
GL_TEXTURE_ENV
,
opr1_target
,
GL_SRC_ALPHA
);
checkGLcall
(
"GL_TEXTURE_ENV, opr1_target, GL_SRC_ALPHA"
);
switch
(
opr1
)
{
case
GL_SRC_COLOR
:
opr
=
GL_SRC_ALPHA
;
break
;
case
GL_ONE_MINUS_SRC_COLOR
:
opr
=
GL_ONE_MINUS_SRC_ALPHA
;
break
;
case
GL_SRC_ALPHA
:
opr
=
GL_SRC_ALPHA
;
break
;
case
GL_ONE_MINUS_SRC_ALPHA
:
opr
=
GL_ONE_MINUS_SRC_ALPHA
;
break
;
}
glTexEnvi
(
GL_TEXTURE_ENV
,
opr1_target
,
opr
);
checkGLcall
(
"GL_TEXTURE_ENV, opr1_target, opr"
);
glTexEnvi
(
GL_TEXTURE_ENV
,
src2_target
,
src2
);
checkGLcall
(
"GL_TEXTURE_ENV, src2_target, src2"
);
glTexEnvi
(
GL_TEXTURE_ENV
,
opr2_target
,
opr2
);
...
...
@@ -1696,8 +1708,14 @@ void set_tex_op(LPDIRECT3DDEVICE8 iface, BOOL isAlpha, int Stage, D3DTEXTUREOP o
checkGLcall
(
"GL_TEXTURE_ENV, comb_target, GL_MODULATE_ADD_ATI"
);
glTexEnvi
(
GL_TEXTURE_ENV
,
src0_target
,
src1
);
checkGLcall
(
"GL_TEXTURE_ENV, src0_target, src1"
);
glTexEnvi
(
GL_TEXTURE_ENV
,
opr0_target
,
GL_ONE_MINUS_SRC_ALPHA
);
checkGLcall
(
"GL_TEXTURE_ENV, opr0_target, GL_ONE_MINUS_SRC_APHA"
);
switch
(
opr1
)
{
case
GL_SRC_COLOR
:
opr
=
GL_ONE_MINUS_SRC_ALPHA
;
break
;
case
GL_ONE_MINUS_SRC_COLOR
:
opr
=
GL_SRC_ALPHA
;
break
;
case
GL_SRC_ALPHA
:
opr
=
GL_ONE_MINUS_SRC_ALPHA
;
break
;
case
GL_ONE_MINUS_SRC_ALPHA
:
opr
=
GL_SRC_ALPHA
;
break
;
}
glTexEnvi
(
GL_TEXTURE_ENV
,
opr0_target
,
opr
);
checkGLcall
(
"GL_TEXTURE_ENV, opr0_target, opr"
);
glTexEnvi
(
GL_TEXTURE_ENV
,
src1_target
,
src1
);
checkGLcall
(
"GL_TEXTURE_ENV, src1_target, src1"
);
glTexEnvi
(
GL_TEXTURE_ENV
,
opr1_target
,
opr1
);
...
...
@@ -1717,12 +1735,24 @@ void set_tex_op(LPDIRECT3DDEVICE8 iface, BOOL isAlpha, int Stage, D3DTEXTUREOP o
checkGLcall
(
"GL_TEXTURE_ENV, comb_target, GL_MODULATE_ADD_ATI"
);
glTexEnvi
(
GL_TEXTURE_ENV
,
src0_target
,
src1
);
checkGLcall
(
"GL_TEXTURE_ENV, src0_target, src1"
);
glTexEnvi
(
GL_TEXTURE_ENV
,
opr0_target
,
GL_ONE_MINUS_SRC_COLOR
);
checkGLcall
(
"GL_TEXTURE_ENV, opr0_target, GL_ONE_MINUS_SRC_COLOR"
);
switch
(
opr1
)
{
case
GL_SRC_COLOR
:
opr
=
GL_ONE_MINUS_SRC_COLOR
;
break
;
case
GL_ONE_MINUS_SRC_COLOR
:
opr
=
GL_SRC_COLOR
;
break
;
case
GL_SRC_ALPHA
:
opr
=
GL_ONE_MINUS_SRC_ALPHA
;
break
;
case
GL_ONE_MINUS_SRC_ALPHA
:
opr
=
GL_SRC_ALPHA
;
break
;
}
glTexEnvi
(
GL_TEXTURE_ENV
,
opr0_target
,
opr
);
checkGLcall
(
"GL_TEXTURE_ENV, opr0_target, opr"
);
glTexEnvi
(
GL_TEXTURE_ENV
,
src1_target
,
src1
);
checkGLcall
(
"GL_TEXTURE_ENV, src1_target, src1"
);
glTexEnvi
(
GL_TEXTURE_ENV
,
opr1_target
,
GL_SRC_ALPHA
);
checkGLcall
(
"GL_TEXTURE_ENV, opr1_target, GL_SRC_ALPHA"
);
switch
(
opr1
)
{
case
GL_SRC_COLOR
:
opr
=
GL_SRC_ALPHA
;
break
;
case
GL_ONE_MINUS_SRC_COLOR
:
opr
=
GL_ONE_MINUS_SRC_ALPHA
;
break
;
case
GL_SRC_ALPHA
:
opr
=
GL_SRC_ALPHA
;
break
;
case
GL_ONE_MINUS_SRC_ALPHA
:
opr
=
GL_ONE_MINUS_SRC_ALPHA
;
break
;
}
glTexEnvi
(
GL_TEXTURE_ENV
,
opr1_target
,
opr
);
checkGLcall
(
"GL_TEXTURE_ENV, opr1_target, opr"
);
glTexEnvi
(
GL_TEXTURE_ENV
,
src2_target
,
src2
);
checkGLcall
(
"GL_TEXTURE_ENV, src2_target, src2"
);
glTexEnvi
(
GL_TEXTURE_ENV
,
opr2_target
,
opr2
);
...
...
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