diff options
author | Jannik Vogel <email@jannikvogel.de> | 2016-04-19 00:53:42 +0200 |
---|---|---|
committer | Jannik Vogel <email@jannikvogel.de> | 2016-05-11 08:07:37 +0200 |
commit | 5a7306d6dfb04cf21990a58cddb5b03ca2541fa0 (patch) | |
tree | 293f1547afeba5b684d4cd73e0cd26cb81341839 /src/video_core/renderer_opengl/gl_rasterizer.cpp | |
parent | Rasterizer: Implement texture type 3 (diff) | |
download | yuzu-5a7306d6dfb04cf21990a58cddb5b03ca2541fa0.tar yuzu-5a7306d6dfb04cf21990a58cddb5b03ca2541fa0.tar.gz yuzu-5a7306d6dfb04cf21990a58cddb5b03ca2541fa0.tar.bz2 yuzu-5a7306d6dfb04cf21990a58cddb5b03ca2541fa0.tar.lz yuzu-5a7306d6dfb04cf21990a58cddb5b03ca2541fa0.tar.xz yuzu-5a7306d6dfb04cf21990a58cddb5b03ca2541fa0.tar.zst yuzu-5a7306d6dfb04cf21990a58cddb5b03ca2541fa0.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_rasterizer.cpp')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index d1d9beccb..ed2e2f3ae 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -76,6 +76,9 @@ RasterizerOpenGL::RasterizerOpenGL() : shader_dirty(true) { glEnableVertexAttribArray(GLShader::ATTRIBUTE_TEXCOORD1); glEnableVertexAttribArray(GLShader::ATTRIBUTE_TEXCOORD2); + glVertexAttribPointer(GLShader::ATTRIBUTE_TEXCOORD0_W, 1, GL_FLOAT, GL_FALSE, sizeof(HardwareVertex), (GLvoid*)offsetof(HardwareVertex, tex_coord0_w)); + glEnableVertexAttribArray(GLShader::ATTRIBUTE_TEXCOORD0_W); + glVertexAttribPointer(GLShader::ATTRIBUTE_NORMQUAT, 4, GL_FLOAT, GL_FALSE, sizeof(HardwareVertex), (GLvoid*)offsetof(HardwareVertex, normquat)); glEnableVertexAttribArray(GLShader::ATTRIBUTE_NORMQUAT); @@ -319,6 +322,11 @@ void RasterizerOpenGL::NotifyPicaRegisterChanged(u32 id) { SyncLogicOp(); break; + // Texture 0 type + case PICA_REG_INDEX(texture0.type): + shader_dirty = true; + break; + // TEV stages case PICA_REG_INDEX(tev_stage0.color_source1): case PICA_REG_INDEX(tev_stage0.color_modifier1): |