Made a workaround.

1. Commented in CViewRender::DrawViewModels:
viewModelSetup.zNear = view.zNearViewmodel;
Note: this breaks viewmodels that weren't compiled for HL2.

2. In C_VGuiScreen::DrawModel, before g_pMatSystemSurface->DrawPanelIn3DSpace 
added
  CMatRenderContextPtr pRenderContext( materials );
  pRenderContext->DepthRange( 0.0f, 0.1f );
And after DrawScreenOverlay(); added
  pRenderContext->DepthRange( 0.0, 1.0 );


So, a question:
Is there a legit way of getting CViewSetup for C_VGuiScreen::DrawModel
(so I don't have to comment that one line)?


_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to