Commit 776b69b0 by Nicolas Capens

Implement glPointSize for OpenGL ES 1.1.

Bug 21278131 Change-Id: I36c2ac37d8f999d4fa9dbf3eecb73f3537380cba Reviewed-on: https://swiftshader-review.googlesource.com/3210Reviewed-by: 's avatarNicolas Capens <capn@google.com> Tested-by: 's avatarNicolas Capens <capn@google.com>
parent 60c81685
......@@ -625,6 +625,11 @@ void Context::setFogColor(float r, float g, float b, float a)
device->setFogColor(sw::Color<float>(r, g, b, a));
}
void Context::setPointSize(float size)
{
device->setPointSize(size);
}
void Context::setTexture2Denabled(bool enable)
{
texture2Denabled[mState.activeSampler] = enable;
......
......@@ -315,6 +315,8 @@ public:
void setLightAttenuationLinear(int index, float linear);
void setLightAttenuationQuadratic(int index, float quadratic);
void setPointSize(float size);
void setFog(bool enabled);
void setFogMode(GLenum mode);
void setFogDensity(float fogDensity);
......
......@@ -2751,7 +2751,14 @@ void PointParameterxv(GLenum pname, const GLfixed *params)
void PointSize(GLfloat size)
{
UNIMPLEMENTED();
TRACE("(GLfloat size = %f)", size);
es1::Context *context = es1::getContext();
if(context)
{
context->setPointSize(size);
}
}
void PointSizePointerOES(GLenum type, GLsizei stride, const GLvoid *pointer)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment