| 1093 | } |
| 1094 | |
| 1095 | bool GL46Engine::CopyCpuToGpu(std::shared_ptr<Buffer> const& buffer) |
| 1096 | { |
| 1097 | if (!buffer->GetData()) |
| 1098 | { |
| 1099 | buffer->CreateStorage(); |
| 1100 | } |
| 1101 | |
| 1102 | auto glBuffer = static_cast<GL46Buffer*>(Bind(buffer)); |
| 1103 | return glBuffer->CopyCpuToGpu(); |
| 1104 | } |
| 1105 | |
| 1106 | bool GL46Engine::CopyCpuToGpu(std::shared_ptr<TextureSingle> const& texture) |
| 1107 | { |