Skip to content

Commit 27a5005

Browse files
authored
[ZH] Add missing call to IDirect3DSurface8::UnlockRect in W3DSmudge's copyRect (#893)
1 parent ff63f75 commit 27a5005

File tree

1 file changed

+2
-0
lines changed
  • GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient

1 file changed

+2
-0
lines changed

GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DSmudge.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,8 @@ Int copyRect(unsigned char *buf, Int bufSize, int oX, int oY, int width, int hei
192192
memcpy(buf,lrect.pBits,bufSize);
193193
result = bufSize;
194194

195+
tempSurface->UnlockRect();
196+
195197
error:
196198
if (surface)
197199
surface->Release();

0 commit comments

Comments
 (0)