gl: fix viewport stuff before i forget

This commit is contained in:
chyyran 2022-11-19 02:35:02 -05:00
parent 83dc63ffe0
commit 2c8f2685f2
2 changed files with 3 additions and 1 deletions

View file

@ -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.

View file

@ -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);