MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / unlock

Method unlock

2dlib/surface.cpp:515–534  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

513}
514
515void grSurface::unlock() {
516 bool grerr;
517
518 ASSERT(m_SurfInit);
519 ASSERT(surf_Locked);
520
521 switch (ddsfObj.type) {
522 case SURFTYPE_VIDEOSCREEN:
523 case SURFTYPE_GENERIC:
524 grerr = ddgr_surf_Unlock(&ddsfObj, m_OrigDataPtr);
525 break;
526 case SURFTYPE_MEMORY:
527 grerr = gr_mem_surf_Unlock(&ddsfObj, m_OrigDataPtr);
528 break;
529 default:
530 Int3(); // invalid type!!
531 }
532
533 surf_Locked--;
534}
535
536// ---------------------------------------------------------------------------
537// miscellaneous

Callers 15

ShowRadViewFunction · 0.45
UpdateTextureViewsMethod · 0.45
UpdateTextureViewMethod · 0.45
UpdateMegacellViewMethod · 0.45
RenderTexFrameFunction · 0.45
RenderWireFrameFunction · 0.45
DrawPlayerOnTerrainMethod · 0.45
DrawTerrainCellMethod · 0.45
DrawTerrainWorldMethod · 0.45
UpdateViewMethod · 0.45
ListBoxProcMethod · 0.45
EndEditorFrameFunction · 0.45

Calls 2

ddgr_surf_UnlockFunction · 0.85
gr_mem_surf_UnlockFunction · 0.85

Tested by 2

RenderTexFrameFunction · 0.36
RenderWireFrameFunction · 0.36