if ( pRenderQueue[i].__isTexUpdated)
{
#ifndef __SHARED_CONTEXT__
- pGlContext->InvalidateTexture(pRenderQueue[i].__pSurfaceInfo);
+ pGlContext->InvalidateTexture(&pRenderQueue[i].__pSurfaceInfo->__textureInfo);
#endif
pGlContext->UploadTexture(&pRenderQueue[i].__pSurfaceInfo->__textureInfo);
if (pRenderQueue[i].__isExtraSurfaceUpdated[k])
{
#ifndef __SHARED_CONTEXT__
- pGlContext->InvalidateTexture(pRenderQueue[i].__pExtraSurfaceInfo[k]->__textureInfo);
+ pGlContext->InvalidateTexture(&pRenderQueue[i].__pExtraSurfaceInfo[k]->__textureInfo);
#endif
pGlContext->UploadTexture(&pRenderQueue[i].__pExtraSurfaceInfo[k]->__textureInfo);
if (pRenderQueue[i].__isAlphaMaskUpdated)
{
#ifndef __SHARED_CONTEXT__
- pGlContext->InvalidateTexture(pRenderQueue[i].__pAlphaMaskSurfaceInfo);
+ pGlContext->InvalidateTexture(&pRenderQueue[i].__pAlphaMaskSurfaceInfo->__textureInfo);
#endif
pGlContext->UploadTexture(&pRenderQueue[i].__pAlphaMaskSurfaceInfo->__textureInfo);