SL-17827 Crash at LLCamera::setViewHeightInPixels
parent
cdff716908
commit
faeded3657
|
|
@ -2511,10 +2511,11 @@ void LLViewerWindow::reshape(S32 width, S32 height)
|
|||
|
||||
//glViewport(0, 0, width, height );
|
||||
|
||||
if (height > 0)
|
||||
LLViewerCamera * camera = LLViewerCamera::getInstance(); // simpleton, might not exist
|
||||
if (height > 0 && camera)
|
||||
{
|
||||
LLViewerCamera::getInstance()->setViewHeightInPixels( mWorldViewRectRaw.getHeight() );
|
||||
LLViewerCamera::getInstance()->setAspect( getWorldViewAspectRatio() );
|
||||
camera->setViewHeightInPixels( mWorldViewRectRaw.getHeight() );
|
||||
camera->setAspect( getWorldViewAspectRatio() );
|
||||
}
|
||||
|
||||
calcDisplayScale();
|
||||
|
|
|
|||
Loading…
Reference in New Issue