| 1148 | } |
| 1149 | |
| 1150 | bool GL46Engine::CopyGpuToCpu(std::shared_ptr<Buffer> const& buffer) |
| 1151 | { |
| 1152 | if (!buffer->GetData()) |
| 1153 | { |
| 1154 | buffer->CreateStorage(); |
| 1155 | } |
| 1156 | |
| 1157 | auto glBuffer = static_cast<GL46Buffer*>(Bind(buffer)); |
| 1158 | return glBuffer->CopyGpuToCpu(); |
| 1159 | } |
| 1160 | |
| 1161 | bool GL46Engine::CopyGpuToCpu(std::shared_ptr<TextureSingle> const& texture) |
| 1162 | { |