- empty screenshot array is returned by base framebuffer

src/v_video.h:556:94: warning: control reaches end of non-void function [-Wreturn-type]
This commit is contained in:
alexey.lysiuk 2018-12-21 14:58:39 +02:00
parent f6d9110c70
commit 5c5b9eb044
1 changed files with 1 additions and 1 deletions

View File

@ -553,7 +553,7 @@ public:
// Retrieves a buffer containing image data for a screenshot.
// Hint: Pitch can be negative for upside-down images, in which case buffer
// points to the last row in the buffer, which will be the first row output.
virtual TArray<uint8_t> GetScreenshotBuffer(int &pitch, ESSType &color_type, float &gamma) {}
virtual TArray<uint8_t> GetScreenshotBuffer(int &pitch, ESSType &color_type, float &gamma) { return TArray<uint8_t>(); }
static float GetZNear() { return 5.f; }
static float GetZFar() { return 65536.f; }