diff options
author | bunnei <bunneidev@gmail.com> | 2016-05-12 03:47:08 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2016-05-12 03:47:08 +0200 |
commit | f6eb62d0628d31efc4f93a0057ebd85bb39bc0fe (patch) | |
tree | fc06c2b51cbfbf4867ab885d32b0427ddc56e3b6 /src/video_core/renderer_opengl/gl_rasterizer.cpp | |
parent | Merge pull request #1780 from JayFoxRox/shadersetup-class (diff) | |
parent | OpenGL: Implement texture type 3 (diff) | |
download | yuzu-f6eb62d0628d31efc4f93a0057ebd85bb39bc0fe.tar yuzu-f6eb62d0628d31efc4f93a0057ebd85bb39bc0fe.tar.gz yuzu-f6eb62d0628d31efc4f93a0057ebd85bb39bc0fe.tar.bz2 yuzu-f6eb62d0628d31efc4f93a0057ebd85bb39bc0fe.tar.lz yuzu-f6eb62d0628d31efc4f93a0057ebd85bb39bc0fe.tar.xz yuzu-f6eb62d0628d31efc4f93a0057ebd85bb39bc0fe.tar.zst yuzu-f6eb62d0628d31efc4f93a0057ebd85bb39bc0fe.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): |