Bug 51494

Summary: Restoring lost WebGL context causes a crash
Product: WebKit Reporter: Adrienne Walker <enne>
Component: WebGLAssignee: Adrienne Walker <enne>
Status: RESOLVED FIXED    
Severity: Normal CC: amarinichev, commit-queue, enne, kbr, zmo
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 51492    
Attachments:
Description Flags
Patch kbr: review+

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>