Commit 4f720990 authored by Robert Mader's avatar Robert Mader

Revert "cogl: Pick glReadPixels format by target, not source"

This reverts commit 981b0454.

Fixes #418
parent 8856a396
Pipeline #65888 passed with stages
in 4 minutes and 40 seconds
......@@ -4,7 +4,6 @@
* A Low Level GPU Graphics and Utilities API
* Copyright (C) 2007,2008,2009,2012 Intel Corporation.
* Copyright (C) 2018 DisplayLink (UK) Ltd.
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
......@@ -1274,12 +1273,9 @@ _cogl_framebuffer_gl_read_pixels_into_bitmap (CoglFramebuffer *framebuffer,
if (!cogl_is_offscreen (framebuffer))
y = framebuffer_height - y - height;
/* Use target format ANY, because GL texture_swizzle extension cannot
* ever apply for glReadPixels.
required_format = ctx->driver_vtable->pixel_format_to_gl_with_target (ctx,
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment