diff options
| -rw-r--r-- | src/video_core/renderer_opengl/gl_shader_decompiler.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp index b17c4e703..0e644564a 100644 --- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp +++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp | |||
| @@ -1469,7 +1469,8 @@ private: | |||
| 1469 | } | 1469 | } |
| 1470 | 1470 | ||
| 1471 | Expression HCastFloat(Operation operation) { | 1471 | Expression HCastFloat(Operation operation) { |
| 1472 | return {fmt::format("vec2({})", VisitOperand(operation, 0).AsFloat()), Type::HalfFloat}; | 1472 | return {fmt::format("vec2({}, 0.0f)", VisitOperand(operation, 0).AsFloat()), |
| 1473 | Type::HalfFloat}; | ||
| 1473 | } | 1474 | } |
| 1474 | 1475 | ||
| 1475 | Expression HUnpack(Operation operation) { | 1476 | Expression HUnpack(Operation operation) { |