Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | vo_opengl: move FBO helper to gl_utils | wm4 | 2015-01-29 | 1 | -0/+77 |
| | | | | | | | | | | | | | This is somewhat messy, because fbotex_init() itself was depending on some gl_video parameters unrelated to FBO creation (like what scaler was in use - what the fuck did this check do in this function?), so this commit does a bit more than moving code around. In particular, the FBO for the separate scaling intermediate step now always uses GL_NEAREST sampling, and all FBOs are destroyed/recreated on renderer reinitialization. This also moves the function matrix_ortho2d() - trivial enough not to put it into a separate commit. | ||||
* | vo_opengl: create abstraction for VAOs | wm4 | 2015-01-28 | 1 | -0/+86 |
| | | | | | | Handles stupid boilerplate OpenGL requires you to handle. It's the same code as in gl_video.c, although if no VAOs are available, the fallback code rebinds them on every draw call instead of just once. | ||||
* | vo_opengl: move utility functions from loader to a separate file | wm4 | 2015-01-28 | 1 | -0/+213 |
gl_common.c contained the function loader (which is big) and additional utility functions (not so big, but will grow when moving more out of gl_video.c). Just split them. There are no changes other than some modifications to comments. |