- implement model vertex buffer and draw MD2 models using it instead of using the GLCommands from the model.
This commit is contained in:
parent
2cd1118aad
commit
1efc2938b7
10 changed files with 121 additions and 136 deletions
|
|
@ -45,6 +45,7 @@
|
|||
#include "c_cvars.h"
|
||||
#include "gl/system/gl_interface.h"
|
||||
#include "gl/renderer/gl_renderer.h"
|
||||
#include "gl/shaders/gl_shader.h"
|
||||
#include "gl/data/gl_data.h"
|
||||
#include "gl/data/gl_vertexbuffer.h"
|
||||
|
||||
|
|
@ -332,6 +333,7 @@ void FFlatVertexBuffer::BindVBO()
|
|||
glEnableClientState(GL_VERTEX_ARRAY);
|
||||
glEnableClientState(GL_TEXTURE_COORD_ARRAY);
|
||||
glDisableClientState(GL_COLOR_ARRAY);
|
||||
glDisableVertexAttribArray(VATTR_VERTEX2);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue