| 51 | } |
| 52 | |
| 53 | void StudioApp::clearPreviewTexture() |
| 54 | { |
| 55 | if (previewTexture) |
| 56 | { |
| 57 | SDL_DestroyTexture(previewTexture); |
| 58 | previewTexture = nullptr; |
| 59 | } |
| 60 | previewTexW = 0; |
| 61 | previewTexH = 0; |
| 62 | previewTextureFile.clear(); |
| 63 | } |
| 64 | |
| 65 | StudioApp::PreviewType StudioApp::previewTypeFromExtension(const std::string& ext) |
| 66 | { |