| 38 | } |
| 39 | |
| 40 | bool GFXGLOcclusionQuery::begin() |
| 41 | { |
| 42 | if (GFXDevice::getDisableOcclusionQuery()) |
| 43 | return true; |
| 44 | |
| 45 | if (!glIsQuery(mQuery)) |
| 46 | glGenQueries(1, &mQuery); |
| 47 | |
| 48 | if (!mTesting) |
| 49 | { |
| 50 | glBeginQuery(GL_SAMPLES_PASSED, mQuery); |
| 51 | mTesting = true; |
| 52 | } |
| 53 | return true; |
| 54 | } |
| 55 | |
| 56 | void GFXGLOcclusionQuery::end() |
| 57 | { |
no outgoing calls
no test coverage detected