Commit 021ff3e5 by Nicolas Capens

Implement glDrawTexfOES.

Bug 26424655 Change-Id: I24f9b17f5768d457b64fc510bf88f392f02759bc Reviewed-on: https://swiftshader-review.googlesource.com/4523Tested-by: 's avatarNicolas Capens <capn@google.com> Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <capn@google.com>
parent b65c82ea
...@@ -603,7 +603,7 @@ void ClipPlanex(GLenum plane, const GLfixed *equation) ...@@ -603,7 +603,7 @@ void ClipPlanex(GLenum plane, const GLfixed *equation)
(float)equation[2] / 0x10000, (float)equation[2] / 0x10000,
(float)equation[3] / 0x10000, (float)equation[3] / 0x10000,
}; };
ClipPlanef(plane, equationf); ClipPlanef(plane, equationf);
} }
...@@ -4688,7 +4688,19 @@ void DrawTexxvOES(const GLfixed *coords) ...@@ -4688,7 +4688,19 @@ void DrawTexxvOES(const GLfixed *coords)
void DrawTexfOES(GLfloat x, GLfloat y, GLfloat z, GLfloat width, GLfloat height) void DrawTexfOES(GLfloat x, GLfloat y, GLfloat z, GLfloat width, GLfloat height)
{ {
UNIMPLEMENTED(); TRACE("(GLfloat x = %f, GLfloat y = %f, GLfloat z = %f, GLfloat width = %f, GLfloat height = %f)", x, y, z, width, height);
if(width <= 0 || height <= 0)
{
return error(GL_INVALID_VALUE);
}
es1::Context *context = es1::getContext();
if(context)
{
context->drawTexture(x, y, z, width, height);
}
} }
void DrawTexfvOES(const GLfloat *coords) void DrawTexfvOES(const GLfloat *coords)
......
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