97f75ca87f
GPUState: Move state limits getter to the area they belong
...
This fix a GL_INVALID_VALUE error on startup due to 0.0f max line width.
Also moves the max anisotropy filter to the sampler creation.
This reduces code fragmentation.
2020-08-25 18:18:55 +02:00
1dafa87eb5
GPUState: Fix signed / bitfield conversion leading to wrong enum value
...
This was creating drawing issues on windows builds.
2020-08-19 17:13:53 +02:00
adca09b643
GPUState: Port default state to StateManager constructor
2020-08-18 21:30:11 +02:00
a9f2ebb215
Cleanup: DRW: Use GPUState instead of raw opengl calls
...
Should not break anything! Huh!
2020-08-18 21:30:10 +02:00
536c2e0ec9
GPUState: Only apply state before drawing
2020-08-18 21:30:10 +02:00
482a51aabf
Cleanup: GPUState: Remove stack from the state manager and rename it
2020-08-18 21:30:10 +02:00
f30df15edc
GPUState: Make use of GPUStateStack class
...
This isolate most GL calls to the GL backend. Still a few remains.
2020-08-18 21:30:10 +02:00
2ae1c895a2
GPUState: Add GL backend and state tracking but do not use it
...
This is just the backend work. It is not plugged in yet because it
needs more external cleanup/refactor.
2020-08-18 21:30:10 +02:00