cginternals / cginternals/gloperate

Viewport does not align with window boundaries

Open
#393 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
C++
Stars
43
Forks
24
PR merge metrics
No merged PRs in 30d

Description

For some reason, the screen area OpenGL draws into does not align with the window area. There is an offset of about [-11, 11] pixels (seen from the top left), hence the black borders on the top and right (I changed the clear color to red in `ShapeDemo`). `OpenGLWindow::geometry()` reports `0, 0, 1280, 720` relative to the main window (which is correct, in theory).

![untitled-3](https://user-images.githubusercontent.com/5197084/28967600-331142aa-791c-11e7-9169-ec13eff9ee1c.png)

Using Qt 5.9.1 on Windows 10 x64 with Visual Studio 2017.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the offset on Windows 10 with Qt 5.9.1 and Visual Studio 2017, using ShapeDemo and comparing OpenGLWindow::geometry() with the actual rendered area. Inspect the window and viewport boundary handling; done means the OpenGL content aligns with the window without the reported black borders.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
computer-graphics, desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.