mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
Make gleans polyoffset test happy.
This commit is contained in:
parent
d5084d42d4
commit
aca2e0da3c
1 changed files with 11 additions and 2 deletions
|
|
@ -975,9 +975,18 @@ static void r300DepthRange(GLcontext * ctx, GLclampd nearval, GLclampd farval)
|
|||
static void r300PolygonOffset(GLcontext * ctx, GLfloat factor, GLfloat units)
|
||||
{
|
||||
r300ContextPtr rmesa = R300_CONTEXT(ctx);
|
||||
GLfloat constant = units * /*rmesa->state.depth.scale*/4;
|
||||
GLfloat constant = units;
|
||||
|
||||
switch (ctx->Visual.depthBits) {
|
||||
case 16:
|
||||
constant *= 4.0;
|
||||
break;
|
||||
case 24:
|
||||
constant *= 2.0;
|
||||
break;
|
||||
}
|
||||
|
||||
factor *= 12;
|
||||
factor *= 12.0;
|
||||
|
||||
/* fprintf(stderr, "%s f:%f u:%f\n", __FUNCTION__, factor, constant); */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue