summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-03-25 04:50:21 +0200
committerbunnei <bunneidev@gmail.com>2018-03-27 03:17:00 +0200
commitd89bfec5f55854daa1ff717e4a5f721bfa08a541 (patch)
treeb8bdaa18edcf182d09194b1799b1c40387b1a76f /src
parentgl_rasterizer: Use passthrough shader for SetupVertexShader. (diff)
downloadyuzu-d89bfec5f55854daa1ff717e4a5f721bfa08a541.tar
yuzu-d89bfec5f55854daa1ff717e4a5f721bfa08a541.tar.gz
yuzu-d89bfec5f55854daa1ff717e4a5f721bfa08a541.tar.bz2
yuzu-d89bfec5f55854daa1ff717e4a5f721bfa08a541.tar.lz
yuzu-d89bfec5f55854daa1ff717e4a5f721bfa08a541.tar.xz
yuzu-d89bfec5f55854daa1ff717e4a5f721bfa08a541.tar.zst
yuzu-d89bfec5f55854daa1ff717e4a5f721bfa08a541.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/rasterizer_interface.h4
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer.cpp4
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer.h2
3 files changed, 5 insertions, 5 deletions
diff --git a/src/video_core/rasterizer_interface.h b/src/video_core/rasterizer_interface.h
index a493e1d60..8239f9aad 100644
--- a/src/video_core/rasterizer_interface.h
+++ b/src/video_core/rasterizer_interface.h
@@ -15,8 +15,8 @@ class RasterizerInterface {
public:
virtual ~RasterizerInterface() {}
- /// Draw the current batch of triangles
- virtual void DrawTriangles() = 0;
+ /// Draw the current batch of vertex arrays
+ virtual void DrawArrays() = 0;
/// Notify rasterizer that the specified Maxwell register has been changed
virtual void NotifyMaxwellRegisterChanged(u32 id) = 0;
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp
index 630b46737..dfc4beb9a 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer.cpp
+++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp
@@ -212,12 +212,12 @@ bool RasterizerOpenGL::AccelerateDrawBatch(bool is_indexed) {
}
accelerate_draw = is_indexed ? AccelDraw::Indexed : AccelDraw::Arrays;
- DrawTriangles();
+ DrawArrays();
return true;
}
-void RasterizerOpenGL::DrawTriangles() {
+void RasterizerOpenGL::DrawArrays() {
if (accelerate_draw == AccelDraw::Disabled)
return;
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.h b/src/video_core/renderer_opengl/gl_rasterizer.h
index 71a5437a2..c889b1aff 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer.h
+++ b/src/video_core/renderer_opengl/gl_rasterizer.h
@@ -29,7 +29,7 @@ public:
RasterizerOpenGL();
~RasterizerOpenGL() override;
- void DrawTriangles() override;
+ void DrawArrays() override;
void NotifyMaxwellRegisterChanged(u32 id) override;
void FlushAll() override;
void FlushRegion(VAddr addr, u64 size) override;