code: Fix render call width and height

This commit is contained in:
Marten Ringwelski 2020-11-16 09:17:39 +01:00 committed by Isaac Freund
parent 157dccbbbb
commit 4b7246685f

View File

@ -57,7 +57,8 @@ pub fn renderOutput(output: *Output) void {
c.wlr_output_effective_resolution(output.wlr_output, &width, &height); c.wlr_output_effective_resolution(output.wlr_output, &width, &height);
// Begin the renderer (calls glViewport and some other GL sanity checks) // Begin the renderer (calls glViewport and some other GL sanity checks)
c.wlr_renderer_begin(wlr_renderer, width, height); // 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);
// Find the first visible fullscreen view in the stack if there is one // Find the first visible fullscreen view in the stack if there is one
var it = ViewStack(View).iter(output.views.first, .forward, output.current.tags, renderFilter); var it = ViewStack(View).iter(output.views.first, .forward, output.current.tags, renderFilter);