diff options
| -rw-r--r-- | src/shader_recompiler/backend/spirv/emit_spirv_context_get_set.cpp | 2 | ||||
| -rw-r--r-- | src/video_core/renderer_opengl/renderer_opengl.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/shader_recompiler/backend/spirv/emit_spirv_context_get_set.cpp b/src/shader_recompiler/backend/spirv/emit_spirv_context_get_set.cpp index 756de0a27..fb8c02a77 100644 --- a/src/shader_recompiler/backend/spirv/emit_spirv_context_get_set.cpp +++ b/src/shader_recompiler/backend/spirv/emit_spirv_context_get_set.cpp | |||
| @@ -300,7 +300,7 @@ Id EmitGetAttribute(EmitContext& ctx, IR::Attribute attr, Id vertex) { | |||
| 300 | const std::optional<AttrInfo> type{AttrTypes(ctx, index)}; | 300 | const std::optional<AttrInfo> type{AttrTypes(ctx, index)}; |
| 301 | if (!type) { | 301 | if (!type) { |
| 302 | // Attribute is disabled | 302 | // Attribute is disabled |
| 303 | return ctx.Const(0.0f); | 303 | return ctx.Const(element == 3 ? 1.0f : 0.0f); |
| 304 | } | 304 | } |
| 305 | if (!ctx.runtime_info.previous_stage_stores.Generic(index, element)) { | 305 | if (!ctx.runtime_info.previous_stage_stores.Generic(index, element)) { |
| 306 | // Varying component is not written | 306 | // Varying component is not written |
diff --git a/src/video_core/renderer_opengl/renderer_opengl.cpp b/src/video_core/renderer_opengl/renderer_opengl.cpp index d15167e19..285e78384 100644 --- a/src/video_core/renderer_opengl/renderer_opengl.cpp +++ b/src/video_core/renderer_opengl/renderer_opengl.cpp | |||
| @@ -145,7 +145,7 @@ RendererOpenGL::RendererOpenGL(Core::TelemetrySession& telemetry_session_, | |||
| 145 | GLint max_attribs{}; | 145 | GLint max_attribs{}; |
| 146 | glGetIntegerv(GL_MAX_VERTEX_ATTRIBS, &max_attribs); | 146 | glGetIntegerv(GL_MAX_VERTEX_ATTRIBS, &max_attribs); |
| 147 | for (GLint attrib = 0; attrib < max_attribs; ++attrib) { | 147 | for (GLint attrib = 0; attrib < max_attribs; ++attrib) { |
| 148 | glVertexAttrib4f(attrib, 0.0f, 0.0f, 0.0f, 0.0f); | 148 | glVertexAttrib4f(attrib, 0.0f, 0.0f, 0.0f, 1.0f); |
| 149 | } | 149 | } |
| 150 | // Enable seamless cubemaps when per texture parameters are not available | 150 | // Enable seamless cubemaps when per texture parameters are not available |
| 151 | if (!GLAD_GL_ARB_seamless_cubemap_per_texture && !GLAD_GL_AMD_seamless_cubemap_per_texture) { | 151 | if (!GLAD_GL_ARB_seamless_cubemap_per_texture && !GLAD_GL_AMD_seamless_cubemap_per_texture) { |