DXGL r145 - Code Review
For
DXGL
(
recent comments
|
status changes
|
tags
|
authors
|
states
|
release notes
|
statistics
)
Jump to navigation
Jump to search
Repository:
DXGL
Revision:
<
r144
|
r145
|
r146
>
Date:
21:48, 6 May 2012
Author:
admin
Status:
new
Tags:
Comment:
Add inverted color arguments
Modified paths:
/ddraw/shadergen.cpp
(modified) (
history
)
Diff
[
purge
]
Index: ddraw/shadergen.cpp
—
—
@@ -568,6 +568,8 @@
569
569
arg1 = blendargs[5]+blendargs[8];
570
570
break;
571
571
}
572
+ if(args[0] & D3DTA_COMPLEMENT)
573
+ arg1 = "(1.0 - " + arg1 + ")";
572
574
args[1] = (texstate[i].shaderid>>11)&63;
573
575
switch(args[1]&7) //arg2
574
576
{
—
—
@@ -595,6 +597,8 @@
596
598
arg2 = blendargs[5]+blendargs[8];
597
599
break;
598
600
}
601
+ if(args[1] & D3DTA_COMPLEMENT)
602
+ arg2 = "(1.0 - " + arg2 + ")";
599
603
if(!texfail) switch(texstate[i].shaderid & 31)
600
604
{
601
605
case D3DTOP_DISABLE:
Navigation menu
Personal tools
Log in
Namespaces
Special page
English
expanded
collapsed
Views
More
expanded
collapsed
Search
Navigation
Home
Main page
Recent changes
Random page
MediaWiki help
Introduction
Progress
Downloads
Source code
Build from source
AppDB
Bug reports
Forums
Tools
Special pages
Printable version