mirror of https://github.com/bjornbytes/lovr.git
Move pointSize out of Pipeline;
This commit is contained in:
parent
9f79dd95f4
commit
c99527ec2e
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue