| 250 | } |
| 251 | |
| 252 | GLuint GL46Engine::BeginOcclusionQuery() |
| 253 | { |
| 254 | GLuint occlusionQuery = 0; |
| 255 | glGenQueries(1, &occlusionQuery); |
| 256 | if (occlusionQuery > 0) |
| 257 | { |
| 258 | glBeginQuery(GL_SAMPLES_PASSED, occlusionQuery); |
| 259 | return occlusionQuery; |
| 260 | } |
| 261 | |
| 262 | LogError("glGenQueries failed."); |
| 263 | } |
| 264 | |
| 265 | uint64_t GL46Engine::EndOcclusionQuery(GLuint occlusionQuery) |
| 266 | { |
nothing calls this directly
no test coverage detected