webgl: Implement WebGLContextEvent and use it on context creation error

spec: https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.15
This commit is contained in:
Emilio Cobos Álvarez 2015-10-03 21:09:54 +02:00
parent 217c7da413
commit 7030f09823
8 changed files with 146 additions and 2 deletions

View file

@ -36,7 +36,8 @@ pub enum EventTypeId {
StorageEvent,
UIEvent(UIEventTypeId),
ErrorEvent,
CloseEvent
CloseEvent,
WebGLContextEvent,
}
#[derive(PartialEq, HeapSizeOf)]