mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-27 06:48:33 +00:00
just a little cleanup to maintain minimal interfaces
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7591 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
3fceffd8c0
commit
e5210de9d5
7 changed files with 20 additions and 18 deletions
|
@ -80,7 +80,7 @@ void WriteSwizzler(char*& p, u32 format, API_TYPE ApiType)
|
|||
{
|
||||
WRITE(p,"uniform samplerRECT samp0 : register(s0);\n");
|
||||
}
|
||||
else if (ApiType == API_D3D9)
|
||||
else if (ApiType & API_D3D9)
|
||||
{
|
||||
WRITE(p,"uniform sampler samp0 : register(s0);\n");
|
||||
}
|
||||
|
@ -150,7 +150,7 @@ void Write32BitSwizzler(char*& p, u32 format, API_TYPE ApiType)
|
|||
{
|
||||
WRITE(p,"uniform samplerRECT samp0 : register(s0);\n");
|
||||
}
|
||||
else if (ApiType == API_D3D9)
|
||||
else if (ApiType & API_D3D9)
|
||||
{
|
||||
WRITE(p,"uniform sampler samp0 : register(s0);\n");
|
||||
}
|
||||
|
@ -209,7 +209,7 @@ void Write32BitSwizzler(char*& p, u32 format, API_TYPE ApiType)
|
|||
void WriteSampleColor(char*& p, const char* colorComp, const char* dest, API_TYPE ApiType)
|
||||
{
|
||||
const char* texSampleOpName;
|
||||
if (ApiType == API_D3D9)
|
||||
if (ApiType & API_D3D9)
|
||||
texSampleOpName = "tex2D";
|
||||
else if (ApiType == API_D3D11)
|
||||
texSampleOpName = "tex0.Sample";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue