| 341 | } |
| 342 | |
| 343 | void upload() |
| 344 | { |
| 345 | bindToUnit(GL_TEXTURE0); |
| 346 | glPixelStorei(GL_UNPACK_ALIGNMENT, 1); |
| 347 | glTexSubImage2D(GL_TEXTURE_RECTANGLE, /*level*/0, /*xoffset*/0, /*yoffset*/0, width, height, FormatT::Format, FormatT::Type, data); |
| 348 | CHECKGL(); |
| 349 | } |
| 350 | |
| 351 | void download() |
| 352 | { |
no outgoing calls
no test coverage detected