|
@@ -186,7 +186,7 @@ class GlDriver extends Driver {
|
|
var firstShader = true;
|
|
var firstShader = true;
|
|
var rightHanded = false;
|
|
var rightHanded = false;
|
|
var hasMultiIndirect = false;
|
|
var hasMultiIndirect = false;
|
|
-
|
|
|
|
|
|
+
|
|
var drawMode : Int;
|
|
var drawMode : Int;
|
|
|
|
|
|
public function new(antiAlias=0) {
|
|
public function new(antiAlias=0) {
|
|
@@ -210,7 +210,7 @@ class GlDriver extends Driver {
|
|
programs = new Map();
|
|
programs = new Map();
|
|
defStencil = new Stencil();
|
|
defStencil = new Stencil();
|
|
|
|
|
|
- #if hl
|
|
|
|
|
|
+ #if hlsdl
|
|
hasMultiIndirect = gl.getConfigParameter(0) > 0;
|
|
hasMultiIndirect = gl.getConfigParameter(0) > 0;
|
|
#end
|
|
#end
|
|
|
|
|
|
@@ -616,7 +616,7 @@ class GlDriver extends Driver {
|
|
// Not entirely accurate wireframe, but the best possible on WebGL.
|
|
// Not entirely accurate wireframe, but the best possible on WebGL.
|
|
drawMode = wireframe ? GL.LINE_STRIP : GL.TRIANGLES;
|
|
drawMode = wireframe ? GL.LINE_STRIP : GL.TRIANGLES;
|
|
#end
|
|
#end
|
|
-
|
|
|
|
|
|
+
|
|
if( diff & Pass.culling_mask != 0 ) {
|
|
if( diff & Pass.culling_mask != 0 ) {
|
|
var cull = Pass.getCulling(bits);
|
|
var cull = Pass.getCulling(bits);
|
|
if( cull == 0 )
|
|
if( cull == 0 )
|
|
@@ -1553,7 +1553,7 @@ class GlDriver extends Driver {
|
|
false;
|
|
false;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
// Draws video element directly onto Texture. Used for video rendering.
|
|
// Draws video element directly onto Texture. Used for video rendering.
|
|
private function uploadTextureVideoElement( t : h3d.mat.Texture, v : js.html.VideoElement, mipLevel : Int, side : Int ) {
|
|
private function uploadTextureVideoElement( t : h3d.mat.Texture, v : js.html.VideoElement, mipLevel : Int, side : Int ) {
|
|
var cubic = t.flags.has(Cube);
|
|
var cubic = t.flags.has(Cube);
|
|
@@ -1569,7 +1569,7 @@ class GlDriver extends Driver {
|
|
}
|
|
}
|
|
restoreBind();
|
|
restoreBind();
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
#end
|
|
#end
|
|
|
|
|
|
override function captureRenderBuffer( pixels : hxd.Pixels ) {
|
|
override function captureRenderBuffer( pixels : hxd.Pixels ) {
|