mirror of
https://github.com/kevinbentley/Descent3.git
synced 2025-01-22 11:28:56 +00:00
2dlib: Fix another set but not used variable compiler warning in surface.cpp
This commit is contained in:
parent
a97416fc28
commit
d49691143c
@ -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!!
|
||||
|
Loading…
Reference in New Issue
Block a user