Move pointSize out of Pipeline;

This commit is contained in:
bjorn 2018-12-24 18:59:00 -08:00 committed by Bjorn Swenson
parent 9f79dd95f4
commit c99527ec2e
2 changed files with 5 additions and 5 deletions

View File

@ -324,12 +324,12 @@ void lovrGraphicsSetLineWidth(float width) {
}
float lovrGraphicsGetPointSize() {
return state.pipeline->pointSize;
return state.pointSize;
}
void lovrGraphicsSetPointSize(float size) {
if (state.pipeline->pointSize != size) {
state.pipeline->pointSize = size;
if (state.pointSize != size) {
state.pointSize = size;
}
}
@ -486,7 +486,7 @@ void lovrGraphicsFlush() {
lovrShaderSetInts(shader, "lovrViewportCount", &viewportCount, 0, 1);
// Point size
lovrShaderSetFloats(shader, "lovrPointSize", &state.pipeline->pointSize, 0, 1);
lovrShaderSetFloats(shader, "lovrPointSize", &state.pointSize, 0, 1);
// Buffers and Mesh
int vertexCount = state.vertexCursor - state.batchVertex;

View File

@ -107,7 +107,6 @@ typedef struct {
CompareMode depthTest;
bool depthWrite;
float lineWidth;
float pointSize;
Shader* shader;
CompareMode stencilMode;
int stencilValue;
@ -151,6 +150,7 @@ typedef struct {
Canvas* canvas;
Color color;
Font* font;
float pointSize;
DrawRequest batch;
int batchVertex;
int batchIndex;