|
@@ -157,6 +157,9 @@ static SDL_bool ReadPixel(int x, int y, SDL_Color *c)
|
|
|
|
|
|
surface = SDL_RenderReadPixels(renderer, &r);
|
|
|
if (surface) {
|
|
|
+ /* Don't tonemap back to SDR, our source content was SDR */
|
|
|
+ SDL_SetStringProperty(SDL_GetSurfaceProperties(surface), SDL_PROP_SURFACE_TONEMAP_OPERATOR_STRING, "*=1");
|
|
|
+
|
|
|
if (SDL_ReadSurfacePixel(surface, 0, 0, &c->r, &c->g, &c->b, &c->a)) {
|
|
|
result = SDL_TRUE;
|
|
|
} else {
|