Commit b8cf3ffd by Ping-Hao Wu Committed by Greg Hartman

Implement glClearColorx()

Change-Id: Icd89b98b35c3450be81c6cccbc1c071ee20de2e4 Reviewed-on: https://swiftshader-review.googlesource.com/3170Tested-by: 's avatarGreg Hartman <ghartman@google.com> Reviewed-by: 's avatarNicolas Capens <capn@google.com>
parent 91a3ea46
......@@ -500,7 +500,15 @@ void ClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
void ClearColorx(GLclampx red, GLclampx green, GLclampx blue, GLclampx alpha)
{
UNIMPLEMENTED();
TRACE("(GLclampx red = %d, GLclampx green = %d, GLclampx blue = %d, GLclampx alpha = %d)",
red, green, blue, alpha);
es1::Context *context = es1::getContext();
if(context)
{
context->setClearColor((float)red/65536.0f, (float)green/65536.0f, (float)blue/65536.0f, (float)alpha/65536.0f);
}
}
void ClearDepthf(GLclampf depth)
......
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