| 564 | |
| 565 | #ifdef DGL_USE_GLES |
| 566 | ImageFormat OpenGLImage::getFormat() const noexcept |
| 567 | { |
| 568 | switch (format) |
| 569 | { |
| 570 | case kImageFormatBGR: |
| 571 | return kImageFormatRGB; |
| 572 | case kImageFormatBGRA: |
| 573 | return kImageFormatRGBA; |
| 574 | default: |
| 575 | return format; |
| 576 | } |
| 577 | } |
| 578 | |
| 579 | const char* OpenGLImage::getRawData() const noexcept |
| 580 | { |
no outgoing calls
no test coverage detected