Error if a non-2D/affine matrix is used with auto-batched draws, since they perform CPU-side matrix transforms on 2-component vectors.

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2017-04-23 00:12:57 -03:00
parent 7161d600b7
commit 70b32c47ce
13 changed files with 79 additions and 26 deletions
+2 -2
View File
@@ -204,7 +204,7 @@ GLSL.VERTEX = {
#endif]],
FUNCTIONS = [[
void updatePointSize() {
void setPointSize() {
#ifdef GL_ES
gl_PointSize = love_PointSize;
#endif
@@ -224,7 +224,7 @@ vec4 position(mat4 transform_proj, vec4 vertpos);
void main() {
VaryingTexCoord = VertexTexCoord;
VaryingColor = gammaCorrectColor(VertexColor) * ConstantColor;
updatePointSize();
setPointSize();
love_Position = position(TransformProjectionMatrix, VertexPosition);
}]],
}