Skip to content
Commit a12b2405 authored by Sangkyu Lee's avatar Sangkyu Lee Committed by John Reck
Browse files

Prevent calling GL functions with an invalid surface

Bug: 18518580

When destroying CanvasContext, the surface can be invalid
state. So the surface should be updated to null prior to
destroying GL resources to ensure that GL functions
are not called with an invalid surface.
Some GL implementation makes an error if GL functions
are called with an invalid surface. (Adreno 3xx)

Cherry picked from AOSP: f76d36f9

Change-Id: Ie6f6ea081ec931fc9df30b2c3ed066ec1ae9d294
parent 6cacf44e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment