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
|
# 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.
|
A preprocessor, compiler, and runtime for RetroArch 'slang' shaders, rewritten in pure Rust.
|
||||||
|
|
||||||
Heavily WIP.
|
Heavily WIP.
|
||||||
|
|
|
@ -207,7 +207,7 @@ impl FilterPass {
|
||||||
gl::ClearColor(0.0f32, 0.0f32, 0.0f32, 0.0f32);
|
gl::ClearColor(0.0f32, 0.0f32, 0.0f32, 0.0f32);
|
||||||
gl::Clear(gl::COLOR_BUFFER_BIT);
|
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 {
|
if self.framebuffer.format == gl::SRGB8_ALPHA8 {
|
||||||
gl::Enable(gl::FRAMEBUFFER_SRGB);
|
gl::Enable(gl::FRAMEBUFFER_SRGB);
|
||||||
|
|
Loading…
Add table
Reference in a new issue