From 2c8f2685f214589d35ded969f040711b2a5fbfc5 Mon Sep 17 00:00:00 2001 From: chyyran Date: Sat, 19 Nov 2022 02:35:02 -0500 Subject: [PATCH] gl: fix viewport stuff before i forget --- README.md | 2 ++ librashader-runtime-gl/src/filter_pass.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ca82143..4da6166 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # librashader +![image](https://user-images.githubusercontent.com/1000503/202840226-68e9d01f-aa0b-4bfa-9bc6-a1363f701b85.png) + A preprocessor, compiler, and runtime for RetroArch 'slang' shaders, rewritten in pure Rust. Heavily WIP. diff --git a/librashader-runtime-gl/src/filter_pass.rs b/librashader-runtime-gl/src/filter_pass.rs index 0debae1..1ce581d 100644 --- a/librashader-runtime-gl/src/filter_pass.rs +++ b/librashader-runtime-gl/src/filter_pass.rs @@ -207,7 +207,7 @@ impl FilterPass { gl::ClearColor(0.0f32, 0.0f32, 0.0f32, 0.0f32); gl::Clear(gl::COLOR_BUFFER_BIT); // - gl::Viewport(viewport.x, viewport.y, fb_size.width as GLsizei, fb_size.height as GLsizei); + gl::Viewport(0, 0, fb_size.width as GLsizei, fb_size.height as GLsizei); if self.framebuffer.format == gl::SRGB8_ALPHA8 { gl::Enable(gl::FRAMEBUFFER_SRGB);