summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFengChen <vonchenplus@gmail.com>2023-03-12 06:33:31 +0100
committerFengChen <vonchenplus@gmail.com>2023-03-12 06:33:31 +0100
commit44f10c8dee03ca765fb1fb6557b97a3ba2e149c7 (patch)
tree040b117c2298a3f4d0e7b9f268511d4cc53075f4 /src
parentvideo_core: Invalid index_buffer flag when inline_index draw (diff)
downloadyuzu-44f10c8dee03ca765fb1fb6557b97a3ba2e149c7.tar
yuzu-44f10c8dee03ca765fb1fb6557b97a3ba2e149c7.tar.gz
yuzu-44f10c8dee03ca765fb1fb6557b97a3ba2e149c7.tar.bz2
yuzu-44f10c8dee03ca765fb1fb6557b97a3ba2e149c7.tar.lz
yuzu-44f10c8dee03ca765fb1fb6557b97a3ba2e149c7.tar.xz
yuzu-44f10c8dee03ca765fb1fb6557b97a3ba2e149c7.tar.zst
yuzu-44f10c8dee03ca765fb1fb6557b97a3ba2e149c7.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/renderer_opengl/blit_image.cpp3
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer.cpp1
2 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/blit_image.cpp b/src/video_core/renderer_opengl/blit_image.cpp
index 9a560a73b..3b03e8d5a 100644
--- a/src/video_core/renderer_opengl/blit_image.cpp
+++ b/src/video_core/renderer_opengl/blit_image.cpp
@@ -22,7 +22,7 @@ BlitImageHelper::~BlitImageHelper() = default;
void BlitImageHelper::BlitColor(GLuint dst_framebuffer, GLuint src_image_view, GLuint src_sampler,
const Region2D& dst_region, const Region2D& src_region,
const Extent3D& src_size) {
- glEnable(GL_CULL_FACE);
+ glDisable(GL_CULL_FACE);
glDisable(GL_COLOR_LOGIC_OP);
glDisable(GL_DEPTH_TEST);
glDisable(GL_STENCIL_TEST);
@@ -31,7 +31,6 @@ void BlitImageHelper::BlitColor(GLuint dst_framebuffer, GLuint src_image_view, G
glDisable(GL_ALPHA_TEST);
glDisablei(GL_BLEND, 0);
glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
- glCullFace(GL_BACK);
glFrontFace(GL_CW);
glColorMaski(0, GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE);
glDepthRangeIndexed(0, 0.0, 0.0);
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp
index 7bced675c..b71475a5d 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer.cpp
+++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp
@@ -357,6 +357,7 @@ void RasterizerOpenGL::DrawTexture() {
.y = static_cast<s32>(draw_texture_state.src_y1)}};
blit_image.BlitColor(texture_cache.GetFramebuffer()->Handle(), texture.DefaultHandle(),
sampler->Handle(), dst_region, src_region, texture.size);
+ state_tracker.InvalidateState();
}
++num_queued_commands;