wined3d: Beware of texture_rectangle NP2 support in Reset.
This commit is contained in:
parent
2f658cb337
commit
b706a62aff
|
@ -6766,7 +6766,7 @@ static void updateSurfaceDesc(IWineD3DSurfaceImpl *surface, WINED3DPRESENT_PARAM
|
||||||
}
|
}
|
||||||
surface->currentDesc.Width = pPresentationParameters->BackBufferWidth;
|
surface->currentDesc.Width = pPresentationParameters->BackBufferWidth;
|
||||||
surface->currentDesc.Height = pPresentationParameters->BackBufferHeight;
|
surface->currentDesc.Height = pPresentationParameters->BackBufferHeight;
|
||||||
if (GL_SUPPORT(ARB_TEXTURE_NON_POWER_OF_TWO)) {
|
if (GL_SUPPORT(ARB_TEXTURE_NON_POWER_OF_TWO) || GL_SUPPORT(ARB_TEXTURE_RECTANGLE)) {
|
||||||
surface->pow2Width = pPresentationParameters->BackBufferWidth;
|
surface->pow2Width = pPresentationParameters->BackBufferWidth;
|
||||||
surface->pow2Height = pPresentationParameters->BackBufferHeight;
|
surface->pow2Height = pPresentationParameters->BackBufferHeight;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue