* commit '1a9ad005bd7e492a2aa48e8be1a281b1c621374c': opengles emulator: fix uniform name translation to apps
This commit is contained in:
@@ -82,13 +82,13 @@ void ProgramData::setupLocationShiftWAR()
|
|||||||
|
|
||||||
GLint ProgramData::locationWARHostToApp(GLint hostLoc)
|
GLint ProgramData::locationWARHostToApp(GLint hostLoc)
|
||||||
{
|
{
|
||||||
if (m_locShiftWAR) return hostLoc>>16;
|
if (m_locShiftWAR && hostLoc>0) return hostLoc>>16;
|
||||||
else return hostLoc;
|
else return hostLoc;
|
||||||
}
|
}
|
||||||
|
|
||||||
GLint ProgramData::locationWARAppToHost(GLint appLoc)
|
GLint ProgramData::locationWARAppToHost(GLint appLoc)
|
||||||
{
|
{
|
||||||
if (m_locShiftWAR) return appLoc<<16;
|
if (m_locShiftWAR && appLoc>0) return appLoc<<16;
|
||||||
else return appLoc;
|
else return appLoc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user