Changeset View
Changeset View
Standalone View
Standalone View
libkwineffects/kwinglutils.cpp
Show First 20 Lines • Show All 2301 Lines • ▼ Show 20 Line(s) | |||||
2302 | void GLVertexBuffer::cleanup() | 2302 | void GLVertexBuffer::cleanup() | ||
2303 | { | 2303 | { | ||
2304 | delete GLVertexBufferPrivate::s_indexBuffer; | 2304 | delete GLVertexBufferPrivate::s_indexBuffer; | ||
2305 | GLVertexBufferPrivate::s_indexBuffer = nullptr; | 2305 | GLVertexBufferPrivate::s_indexBuffer = nullptr; | ||
2306 | GLVertexBufferPrivate::hasMapBufferRange = false; | 2306 | GLVertexBufferPrivate::hasMapBufferRange = false; | ||
2307 | GLVertexBufferPrivate::supportsIndexedQuads = false; | 2307 | GLVertexBufferPrivate::supportsIndexedQuads = false; | ||
2308 | delete GLVertexBufferPrivate::streamingBuffer; | 2308 | delete GLVertexBufferPrivate::streamingBuffer; | ||
2309 | GLVertexBufferPrivate::streamingBuffer = nullptr; | 2309 | GLVertexBufferPrivate::streamingBuffer = nullptr; | ||
2310 | glFinish(); | ||||
2310 | } | 2311 | } | ||
2311 | 2312 | | |||
2312 | GLVertexBuffer *GLVertexBuffer::streamingBuffer() | 2313 | GLVertexBuffer *GLVertexBuffer::streamingBuffer() | ||
2313 | { | 2314 | { | ||
2314 | return GLVertexBufferPrivate::streamingBuffer; | 2315 | return GLVertexBufferPrivate::streamingBuffer; | ||
2315 | } | 2316 | } | ||
2316 | 2317 | | |||
2317 | } // namespace | 2318 | } // namespace |