Bug 51494 - Restoring lost WebGL context causes a crash
Summary: Restoring lost WebGL context causes a crash
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebGL (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Adrienne Walker
URL:
Keywords:
Depends on:
Blocks: 51492
  Show dependency treegraph
 
Reported: 2010-12-22 14:14 PST by Adrienne Walker
Modified: 2010-12-22 16:27 PST (History)
5 users (show)

See Also:


Attachments
Patch (1.64 KB, patch)
2010-12-22 14:17 PST, Adrienne Walker
kbr: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Adrienne Walker 2010-12-22 14:14:46 PST
It appears as though the context lost flag is still true when the context is recreated and the fallback 1x1 black textures are created.  As createTexture() returns null in the case of a lost context, these textures fail to be created and there's a null pointer deref.
Comment 1 Adrienne Walker 2010-12-22 14:17:15 PST
Created attachment 77259 [details]
Patch
Comment 2 Kenneth Russell 2010-12-22 14:39:48 PST
Comment on attachment 77259 [details]
Patch

Looks good.
Comment 3 Adrienne Walker 2010-12-22 16:27:10 PST
Committed r74516: <http://trac.webkit.org/changeset/74516>