Bernd Busse a7bd48f5ab
gl_common: set glViewport() to maximum supported size
- Query maximum supported dimensions of `glViewport()` when initializing
so we don't have to worry about differently sized textures when
rendering (usually the same as the maximum supported texture size, but
dependend on the driver).
- Set projection matrix in all shaders at startup to queried viewport
dimensions. Allows using screen coordinates for all vertex positions
without having to keep track of framebuffer dimensions.
- Follow recommendations and set `glViewport()` to queried maximum dimensions
for each draw call (`glDraw*()`, `glClear()`).

Related: #349
2020-04-23 20:30:41 +01:00
..
2019-08-10 00:56:26 +01:00
2020-03-29 19:15:07 +01:00
2019-05-21 20:15:29 +01:00
2019-08-10 00:56:26 +01:00
2019-05-21 20:15:33 +01:00
2020-04-11 16:17:30 +01:00
2020-03-29 19:15:07 +01:00
2020-03-29 19:15:07 +01:00
2020-03-29 19:17:52 +01:00
2019-05-21 20:15:29 +01:00
2019-03-23 14:35:22 +00:00
2019-05-21 20:15:30 +01:00
2019-05-21 20:15:30 +01:00
2020-02-26 20:16:55 +00:00
2020-03-31 05:59:44 +01:00
2019-05-21 20:15:34 +01:00
2020-04-20 19:05:58 +01:00
2020-04-11 16:17:30 +01:00
2020-04-11 01:52:47 +01:00
2020-04-06 20:24:16 +01:00
2019-07-06 13:26:25 +01:00
2019-05-21 20:15:29 +01:00
2019-05-21 20:15:22 +01:00
2019-05-21 20:15:25 +01:00
2019-11-09 17:54:57 +02:00
2020-04-11 01:52:47 +01:00
x.c
2020-04-05 21:45:51 +01:00
2019-03-10 12:35:38 +00:00
2019-03-10 12:35:38 +00:00