OpenGL2: Change normal/tangent vertex encoding.

This commit is contained in:
SmileTheory 2014-10-28 18:15:13 -07:00
parent 7e808f92d6
commit e488663e31
8 changed files with 108 additions and 56 deletions

View file

@ -673,11 +673,11 @@ void GLimp_InitExtraExtensions()
// GL_ARB_vertex_type_2_10_10_10_rev
extension = "GL_ARB_vertex_type_2_10_10_10_rev";
glRefConfig.packedNormalDataType = GL_UNSIGNED_BYTE;
glRefConfig.packedNormalDataType = GL_BYTE;
if( GLimp_HaveExtension( extension ) )
{
if (r_arb_vertex_type_2_10_10_10_rev->integer)
glRefConfig.packedNormalDataType = GL_UNSIGNED_INT_2_10_10_10_REV;
glRefConfig.packedNormalDataType = GL_INT_2_10_10_10_REV;
ri.Printf(PRINT_ALL, result[r_arb_vertex_type_2_10_10_10_rev->integer ? 1 : 0], extension);
}