dri/nouveau: nv10: fix vertex format for GL_UNSIGNED_BYTE
Broken accidentally in f4efc256fd,
the switch to rnn headers.
NV10TCL_VTXFMT_TYPE_BYTE_RGBA became U8_UNORM but B8G8R8A8_UNORM
was used instead.
This commit is contained in:
committed by
Christoph Bumiller
parent
278b832b78
commit
a09b7f7f15
@@ -99,7 +99,7 @@ get_hw_format(int type)
|
||||
case GL_UNSIGNED_SHORT:
|
||||
return NV10_3D_VTXBUF_FMT_TYPE_V16_SNORM;
|
||||
case GL_UNSIGNED_BYTE:
|
||||
return NV10_3D_VTXBUF_FMT_TYPE_B8G8R8A8_UNORM;
|
||||
return NV10_3D_VTXBUF_FMT_TYPE_U8_UNORM;
|
||||
default:
|
||||
assert(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user