DXGL r618 - Code Review

Jump to navigation Jump to search
Repository:DXGL
Revision:r617‎ | r618 | r619 >
Date:22:53, 26 September 2015
Author:admin
Status:new
Tags:
Comment:
Fix detaching a palette from a surface.
Modified paths:
  • /ddraw/glDirectDrawSurface.cpp (modified) (history)

Diff [purge]

Index: ddraw/glDirectDrawSurface.cpp
@@ -1507,8 +1507,9 @@
15081508 if (lpDDPalette)
15091509 {
15101510 if (!This->palette->texture) glDirectDrawPalette_CreateTexture(This->palette, This->ddInterface->renderer);
 1511+ glRenderer_SetTexturePalette(This->ddInterface->renderer, This->texture, This->palette->texture);
15111512 }
1512 - glRenderer_SetTexturePalette(This->ddInterface->renderer, This->texture, This->palette->texture);
 1513+ else glRenderer_SetTexturePalette(This->ddInterface->renderer, This->texture, NULL);
15131514 TRACE_EXIT(23,DD_OK);
15141515 return DD_OK;
15151516 }