diff options
author | mobserveur <mobserveur@gmail.com> | 2025-09-08 17:26:53 +0200 |
---|---|---|
committer | mobserveur <mobserveur@gmail.com> | 2025-09-08 17:26:53 +0200 |
commit | ccf0114f36968d6cf6dfb11e1c5a035406314924 (patch) | |
tree | 50edc786a62ee0b1e2aa6bf06251b655806123f3 /indra/newview/llviewerwindow.cpp | |
parent | 7f0c81918575d3f05e4eadc160b600eaa8b383d1 (diff) |
Optimisations and experimental HDR display support on mac
This commit completes the previous ones for performance optimisations,
and adds HDR display support on mac
Diffstat (limited to 'indra/newview/llviewerwindow.cpp')
-rw-r--r-- | indra/newview/llviewerwindow.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/indra/newview/llviewerwindow.cpp b/indra/newview/llviewerwindow.cpp index 9e52ed9a12..82246b564c 100644 --- a/indra/newview/llviewerwindow.cpp +++ b/indra/newview/llviewerwindow.cpp @@ -1966,8 +1966,10 @@ LLViewerWindow::LLViewerWindow(const Params& p) // LL_DEBUGS("Window") << "Loading feature tables." << LL_ENDL; + // Initialize OpenGL Renderer - LLVertexBuffer::initClass(mWindow); + LLVertexBuffer::initClass(mWindow, gSavedSettings.getU32("MPVertexBufferMode")); + LL_INFOS("RenderInit") << "LLVertexBuffer initialization done." << LL_ENDL ; if (!gGL.init(true)) { @@ -5177,7 +5179,7 @@ bool LLViewerWindow::rawSnapshot(LLImageRaw *raw, S32 image_width, S32 image_hei glReadPixels( subimage_x_offset, out_y + subimage_y_offset, read_width, 1, - GL_DEPTH_COMPONENT, GL_FLOAT, + GL_DEPTH_COMPONENT, GL_UNSIGNED_INT, depth_line_buffer->getData()// current output pixel is beginning of buffer... ); |