mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-18 12:11:50 -04:00
UI: Remove unnecessary vertices for preview
This change reduces the number of triangles drawn using a TRISTRIP while still producing the same shapes for parts of the preview.
This commit is contained in:
1 parent
885e1a78f6
commit
89792bcae9
2 files changed
+7
-18
No files matched your search
@@ -1452,9 +1452,8 @@ void OBSBasic::InitPrimitives()
|
||||
gs_render_start(true);
|
||||
gs_vertex2f(0.0f, 0.0f);
|
||||
gs_vertex2f(0.0f, 1.0f);
|
||||
gs_vertex2f(1.0f, 1.0f);
|
||||
gs_vertex2f(1.0f, 0.0f);
|
||||
gs_vertex2f(0.0f, 0.0f);
|
||||
gs_vertex2f(1.0f, 1.0f);
|
||||
box = gs_render_save();
|
||||
|
||||
gs_render_start(true);
|
||||
|
||||
Reference in new issue
Block a user