aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarten Ringwelski <git@maringuu.de>2020-12-12 16:27:18 +0100
committerIsaac Freund <ifreund@ifreund.xyz>2020-12-12 16:35:33 +0100
commitb2b1a1f5e1f16fd42d547024001d00021c4a25c9 (patch)
treed7b589659e5ae31e12c9151ba50f4cee446f8665
parentd099b167d2381e42f2e79c1c3280b5dcd49a215f (diff)
downloadriver-b2b1a1f5e1f16fd42d547024001d00021c4a25c9.tar.gz
river-b2b1a1f5e1f16fd42d547024001d00021c4a25c9.tar.xz
render: remove unnecessary call to wlr_output_effective_resolution
-rw-r--r--river/render.zig5
1 files changed, 0 insertions, 5 deletions
diff --git a/river/render.zig b/river/render.zig
index 82c2846..0bb65ab 100644
--- a/river/render.zig
+++ b/river/render.zig
@@ -51,11 +51,6 @@ pub fn renderOutput(output: *Output) void {
// wlr_output_attach_render makes the OpenGL context current.
if (!c.wlr_output_attach_render(output.wlr_output, null)) return;
- // The "effective" resolution can change if you rotate your outputs.
- var width: c_int = undefined;
- var height: c_int = undefined;
- c.wlr_output_effective_resolution(output.wlr_output, &width, &height);
-
// Begin the renderer (calls glViewport and some other GL sanity checks)
// Here we don't want the output_effective_resolution since we want to render the whole output
c.wlr_renderer_begin(wlr_renderer, output.wlr_output.width, output.wlr_output.height);