mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 16:19:28 +01:00
Fixed texture encoding. Fixes the interaction with objects in Another Code R. Thanks to wordmanwords for the patch.
Fixes issue 5405.
This commit is contained in:
parent
77f47866df
commit
1587cb3738
@ -259,7 +259,7 @@ void WriteIncrementSampleX(char*& p,API_TYPE ApiType)
|
|||||||
|
|
||||||
void WriteToBitDepth(char*& p, u8 depth, const char* src, const char* dest)
|
void WriteToBitDepth(char*& p, u8 depth, const char* src, const char* dest)
|
||||||
{
|
{
|
||||||
float result = pow(2.0f, depth) - 1.0f;
|
float result = 255 / pow(2.0f, (8 - depth));
|
||||||
WRITE(p, " %s = floor(%s * %ff);\n", dest, src, result);
|
WRITE(p, " %s = floor(%s * %ff);\n", dest, src, result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user