mirror of
https://github.com/MapMakersAndProgrammers/Alternativa3D.git
synced 2025-10-26 18:09:14 -07:00
Fixed bug: After mouse event objects disapearing
This commit is contained in:
@@ -90,6 +90,10 @@ package alternativa.engine3d.core {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
_contextProperties.culling = null;
|
||||||
|
_contextProperties.blendSource = null;
|
||||||
|
_contextProperties.blendDestination = null;
|
||||||
|
_contextProperties.program = null;
|
||||||
// Clear
|
// Clear
|
||||||
drawUnits.length = 0;
|
drawUnits.length = 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -652,6 +652,7 @@ package alternativa.engine3d.core {
|
|||||||
cachedContext3D = context;
|
cachedContext3D = context;
|
||||||
context3DViewProperties = properties[cachedContext3D];
|
context3DViewProperties = properties[cachedContext3D];
|
||||||
if (context3DViewProperties == null) {
|
if (context3DViewProperties == null) {
|
||||||
|
// TODO: create programs on first render
|
||||||
context3DViewProperties = new Context3DViewProperties();
|
context3DViewProperties = new Context3DViewProperties();
|
||||||
var rectGeometry:Geometry = new Geometry(4);
|
var rectGeometry:Geometry = new Geometry(4);
|
||||||
rectGeometry.addVertexStream([VertexAttributes.POSITION, VertexAttributes.POSITION, VertexAttributes.POSITION, VertexAttributes.TEXCOORDS[0], VertexAttributes.TEXCOORDS[0]]);
|
rectGeometry.addVertexStream([VertexAttributes.POSITION, VertexAttributes.POSITION, VertexAttributes.POSITION, VertexAttributes.TEXCOORDS[0], VertexAttributes.TEXCOORDS[0]]);
|
||||||
|
|||||||
Reference in New Issue
Block a user