mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
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:
@@ -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);
|
||||
}]],
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user