wined3d: Beware of texture_rectangle NP2 support in Reset.

oldstable
Stefan Dösinger 2008-01-25 18:02:29 +01:00 committed by Alexandre Julliard
parent 2f658cb337
commit b706a62aff
1 changed files with 1 additions and 1 deletions

View File

@ -6766,7 +6766,7 @@ static void updateSurfaceDesc(IWineD3DSurfaceImpl *surface, WINED3DPRESENT_PARAM
}
surface->currentDesc.Width = pPresentationParameters->BackBufferWidth;
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->pow2Height = pPresentationParameters->BackBufferHeight;
} else {