| 188 | } |
| 189 | |
| 190 | void GraphicsContextGL::BeginFrame() |
| 191 | { |
| 192 | // Get window size (may be different than the requested size) |
| 193 | u32 width, height; |
| 194 | GetScreenSize(&width, &height); |
| 195 | |
| 196 | // Special case: avoid division by zero below |
| 197 | height = height > 0 ? height : 1; |
| 198 | |
| 199 | glViewport( 0, 0, width, height ); |
| 200 | glScissor( 0, 0, width, height ); |
| 201 | } |
| 202 | |
| 203 | void GraphicsContextGL::EndFrame() |
| 204 | { |
nothing calls this directly
no outgoing calls
no test coverage detected