Skip to content
Snippets Groups Projects
Commit 794f5868 authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Merge remote-tracking branch 'origin/main'

parents f42435e4 28b21e2b
No related branches found
No related tags found
No related merge requests found
...@@ -2540,6 +2540,7 @@ void LLImageGLThread::run() ...@@ -2540,6 +2540,7 @@ void LLImageGLThread::run()
// WorkQueue, likewise cleanup afterwards. // WorkQueue, likewise cleanup afterwards.
mWindow->makeContextCurrent(mContext); mWindow->makeContextCurrent(mContext);
gGL.init(false); gGL.init(false);
LL_PROFILER_GPU_CONTEXT;
ThreadPool::run(); ThreadPool::run();
gGL.shutdown(); gGL.shutdown();
mWindow->destroySharedContext(mContext); mWindow->destroySharedContext(mContext);
......
...@@ -801,6 +801,8 @@ BOOL LLWindowSDL::createContext(int x, int y, int width, int height, int bits, B ...@@ -801,6 +801,8 @@ BOOL LLWindowSDL::createContext(int x, int y, int width, int height, int bits, B
return FALSE; return FALSE;
} }
LL_PROFILER_GPU_CONTEXT;
// Disable vertical sync for swap // Disable vertical sync for swap
toggleVSync(enable_vsync); toggleVSync(enable_vsync);
...@@ -1220,6 +1222,7 @@ void LLWindowSDL::swapBuffers() ...@@ -1220,6 +1222,7 @@ void LLWindowSDL::swapBuffers()
{ {
SDL_GL_SwapWindow(mWindow); SDL_GL_SwapWindow(mWindow);
} }
LL_PROFILER_GPU_COLLECT;
} }
U32 LLWindowSDL::getFSAASamples() U32 LLWindowSDL::getFSAASamples()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment