Browse Source

Merge pull request #7774 from haxiomic/development

[js] HTML: make WebGL2 context extend WebGL1. Fixes #7771
George Corney 6 years ago
parent
commit
2474760005
1 changed files with 1 additions and 5 deletions
  1. 1 5
      std/js/html/webgl/WebGL2RenderingContext.hx

+ 1 - 5
std/js/html/webgl/WebGL2RenderingContext.hx

@@ -32,7 +32,7 @@ package js.html.webgl;
 	@see <https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext>
 **/
 @:native("WebGL2RenderingContext")
-extern class WebGL2RenderingContext
+extern class WebGL2RenderingContext extends RenderingContext
 {
 	static inline var READ_BUFFER : Int = 3074;
 	static inline var UNPACK_ROW_LENGTH : Int = 3314;
@@ -594,10 +594,6 @@ extern class WebGL2RenderingContext
 	static inline var UNPACK_COLORSPACE_CONVERSION_WEBGL : Int = 37443;
 	static inline var BROWSER_DEFAULT_WEBGL : Int = 37444;
 	
-	var canvas(default,null) : js.html.CanvasElement;
-	var drawingBufferWidth(default,null) : Int;
-	var drawingBufferHeight(default,null) : Int;
-	
 	
 	/**
 		Initializes and creates the buffer object's data store.