mirror of
https://github.com/MapMakersAndProgrammers/Alternativa3D.git
synced 2025-10-26 01:49:07 -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
|
||||
drawUnits.length = 0;
|
||||
}
|
||||
|
||||
@@ -652,6 +652,7 @@ package alternativa.engine3d.core {
|
||||
cachedContext3D = context;
|
||||
context3DViewProperties = properties[cachedContext3D];
|
||||
if (context3DViewProperties == null) {
|
||||
// TODO: create programs on first render
|
||||
context3DViewProperties = new Context3DViewProperties();
|
||||
var rectGeometry:Geometry = new Geometry(4);
|
||||
rectGeometry.addVertexStream([VertexAttributes.POSITION, VertexAttributes.POSITION, VertexAttributes.POSITION, VertexAttributes.TEXCOORDS[0], VertexAttributes.TEXCOORDS[0]]);
|
||||
|
||||
Reference in New Issue
Block a user