2dlib: Fix another set but not used variable compiler warning in surface.cpp

This commit is contained in:
Sebastian Holtermann 2024-10-30 14:40:54 +01:00
parent a97416fc28
commit d49691143c

View File

@ -512,18 +512,16 @@ char *grSurface::lock(int x, int y, int *rowsize) {
}
void grSurface::unlock() {
bool grerr;
ASSERT(m_SurfInit);
ASSERT(surf_Locked);
switch (ddsfObj.type) {
case SURFTYPE_VIDEOSCREEN:
case SURFTYPE_GENERIC:
grerr = ddgr_surf_Unlock(&ddsfObj, m_OrigDataPtr);
ddgr_surf_Unlock(&ddsfObj, m_OrigDataPtr);
break;
case SURFTYPE_MEMORY:
grerr = gr_mem_surf_Unlock(&ddsfObj, m_OrigDataPtr);
gr_mem_surf_Unlock(&ddsfObj, m_OrigDataPtr);
break;
default:
Int3(); // invalid type!!