gl: fix viewport stuff before i forget
This commit is contained in:
parent
83dc63ffe0
commit
2c8f2685f2
2 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
|||
# librashader
|
||||
|
||||

|
||||
|
||||
A preprocessor, compiler, and runtime for RetroArch 'slang' shaders, rewritten in pure Rust.
|
||||
|
||||
Heavily WIP.
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue