|
|
|
@ -239,7 +239,7 @@ void AbstractFramebuffer::read(const Range2Di& rectangle, Image2D& image) { |
|
|
|
#ifndef MAGNUM_TARGET_GLES2 |
|
|
|
#ifndef MAGNUM_TARGET_GLES2 |
|
|
|
bindInternal(FramebufferTarget::Read); |
|
|
|
bindInternal(FramebufferTarget::Read); |
|
|
|
#else |
|
|
|
#else |
|
|
|
bindInternal(state.readTarget); |
|
|
|
bindInternal(Context::current()->state().framebuffer->readTarget); |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
const std::size_t dataSize = image.dataSize(rectangle.size()); |
|
|
|
const std::size_t dataSize = image.dataSize(rectangle.size()); |
|
|
|
char* const data = new char[dataSize]; |
|
|
|
char* const data = new char[dataSize]; |
|
|
|
|