diff options
| author | Lioncash <mathew1800@gmail.com> | 2014-08-15 14:09:53 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2014-08-15 14:12:29 -0400 |
| commit | 960b54670ca3c2625eaaaee725e093b3f03251c5 (patch) | |
| tree | 1c9349142eab88021ba3af38fc6c4e7134471ca3 /Source/Core/VideoBackends/OGL/VertexManager.cpp | |
| parent | d5d5580424d92c56f8f3d964e1437c744737c67d (diff) | |
OGL: Fix brace and body placements
Also got rid of void argument specifiers. These are a carryover from C.
Diffstat (limited to 'Source/Core/VideoBackends/OGL/VertexManager.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/OGL/VertexManager.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/Source/Core/VideoBackends/OGL/VertexManager.cpp b/Source/Core/VideoBackends/OGL/VertexManager.cpp index 6dce46c239..325d018e91 100644 --- a/Source/Core/VideoBackends/OGL/VertexManager.cpp +++ b/Source/Core/VideoBackends/OGL/VertexManager.cpp @@ -116,11 +116,15 @@ void VertexManager::Draw(u32 stride) break; } - if (g_ogl_config.bSupportsGLBaseVertex) { + if (g_ogl_config.bSupportsGLBaseVertex) + { glDrawRangeElementsBaseVertex(primitive_mode, 0, max_index, index_size, GL_UNSIGNED_SHORT, (u8*)nullptr+s_index_offset, (GLint)s_baseVertex); - } else { + } + else + { glDrawRangeElements(primitive_mode, 0, max_index, index_size, GL_UNSIGNED_SHORT, (u8*)nullptr+s_index_offset); } + INCSTAT(stats.thisFrame.numDrawCalls); } @@ -129,7 +133,8 @@ void VertexManager::vFlush(bool useDstAlpha) GLVertexFormat *nativeVertexFmt = (GLVertexFormat*)VertexLoaderManager::GetCurrentVertexFormat(); u32 stride = nativeVertexFmt->GetVertexStride(); - if (m_last_vao != nativeVertexFmt->VAO) { + if (m_last_vao != nativeVertexFmt->VAO) + { glBindVertexArray(nativeVertexFmt->VAO); m_last_vao = nativeVertexFmt->VAO; } |
