John Reck f3ad324a8d Aggressively unbind GL_PIXEL_UNPACK_BUFFER
Bug: 27186019

Theory: It appears to be possible for FontRenderer
to not unbind its PBO prior to textures being uploaded,
resulting in trying to glSubTexImage2D with a bound
GL_PIXEL_UNPACK_BUFFER. In that scenario the void* is
the offset into the PBO which given a non-null data
will almost certainly overrun the end of the buffer. This
in turn produces a GL_INVALID_OPERATION error.

Change PixelBuffer to avoid leaking this state for now.
This will result in more calls to glBindBuffer/glUnbindBuffer
in the worst case, but the worst case is already bad so this
shouldn't be a problem. In the normal case we avoid binding
the PBO at all ever, so this doesn't impact that.

Change-Id: I05473f0d2f9a3a5da0e33d8f9ddea4731ce970e3
2016-02-24 15:40:05 -08:00
..
2016-01-25 16:15:14 -08:00
2016-02-16 16:32:13 +00:00
2015-08-26 16:29:15 -07:00
2016-01-29 14:53:45 -08:00
2016-02-23 18:52:54 +00:00
2015-08-19 15:53:01 -07:00
2016-02-23 18:52:54 +00:00
2016-01-14 13:42:12 -08:00
2016-01-14 13:42:12 -08:00
2016-01-06 14:04:22 -08:00
2016-01-29 14:53:45 -08:00
2016-02-02 17:10:25 -08:00
2016-01-25 15:48:00 -05:00
2016-02-09 16:32:49 -08:00
2016-01-25 16:15:14 -08:00
2015-11-05 10:13:23 -08:00
2016-01-20 13:16:24 -08:00
2015-11-16 10:42:36 -08:00
2015-11-16 10:42:36 -08:00
2015-07-06 16:12:46 -07:00
2015-12-11 16:05:10 +09:00
2015-12-11 14:55:22 -08:00
2016-02-11 14:35:08 -08:00
2015-07-14 13:25:38 -07:00
2015-08-19 15:53:01 -07:00
2015-12-16 16:40:02 -08:00
2016-01-20 13:16:24 -08:00
2016-01-14 13:42:12 -08:00
2016-02-19 15:51:02 -08:00
2016-01-12 14:45:08 -08:00
2016-01-14 13:42:12 -08:00
2016-01-29 14:53:45 -08:00
2015-08-19 15:10:25 -07:00
2016-02-23 18:52:54 +00:00
2016-02-23 18:52:54 +00:00
2015-08-26 16:29:15 -07:00
2015-08-19 15:53:01 -07:00
2015-07-30 09:51:52 -07:00
2015-08-19 15:53:01 -07:00
2015-07-14 13:25:38 -07:00
2015-09-22 11:58:32 -07:00
2016-02-23 18:52:54 +00:00
2015-07-14 13:25:38 -07:00
2015-08-26 16:29:15 -07:00
2016-01-14 13:42:12 -08:00
2016-01-25 15:48:00 -05:00
2016-02-19 15:51:02 -08:00
2016-02-04 11:23:49 -08:00
2015-10-22 17:13:07 -07:00
2015-07-30 09:51:52 -07:00