diff options
| author | Subv <subv2112@gmail.com> | 2018-08-11 19:21:31 -0500 |
|---|---|---|
| committer | Subv <subv2112@gmail.com> | 2018-08-14 22:25:07 -0500 |
| commit | c5284efd4f04bca05b1f5c61dce59090a7edf61e (patch) | |
| tree | a4bf294444c67058812f010d01a60e44aa1c80b6 /src/video_core/renderer_opengl/gl_rasterizer.cpp | |
| parent | 3aad82b1a385899c4e2b9aab6b5c0c0139cdff36 (diff) | |
Rasterizer: Implemented instanced rendering.
We keep track of the current instance and update an uniform in the shaders to let them know which instance they are.
Instanced vertex arrays are not yet implemented.
Diffstat (limited to 'src/video_core/renderer_opengl/gl_rasterizer.cpp')
| -rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index 9d1549fe9..93eadde7a 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -124,7 +124,7 @@ std::pair<u8*, GLintptr> RasterizerOpenGL::SetupVertexArrays(u8* array_ptr, glBindVertexBuffer(index, stream_buffer.GetHandle(), vertex_buffer_offset, vertex_array.stride); - ASSERT_MSG(vertex_array.divisor == 0, "Vertex buffer divisor unimplemented"); + ASSERT_MSG(vertex_array.divisor == 0, "Instanced vertex arrays are not supported"); } // Use the vertex array as-is, assumes that the data is formatted correctly for OpenGL. |
