fg_geometry: really uninitialized variables
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1252 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
parent
2da5cd2a9a
commit
41c8a0c66b
@ -70,7 +70,7 @@ static void fghDrawGeometryWire11(GLfloat *vertices, GLfloat *normals, GLsizei n
|
|||||||
static void fghDrawGeometryWire20(GLfloat *vertices, GLfloat *normals, GLsizei numFaces, GLsizei numEdgePerFace,
|
static void fghDrawGeometryWire20(GLfloat *vertices, GLfloat *normals, GLsizei numFaces, GLsizei numEdgePerFace,
|
||||||
GLint attribute_v_coord, GLint attribute_v_normal)
|
GLint attribute_v_coord, GLint attribute_v_normal)
|
||||||
{
|
{
|
||||||
GLuint vbo_coords, vbo_normals;
|
GLuint vbo_coords = 0, vbo_normals = 0;
|
||||||
GLuint numVertices = numFaces * numEdgePerFace;
|
GLuint numVertices = numFaces * numEdgePerFace;
|
||||||
|
|
||||||
int i;
|
int i;
|
||||||
@ -181,7 +181,7 @@ static void fghDrawGeometrySolid20(GLfloat *vertices, GLfloat *normals, GLubyte
|
|||||||
GLsizei numVertices, GLsizei numVertIdxs,
|
GLsizei numVertices, GLsizei numVertIdxs,
|
||||||
GLint attribute_v_coord, GLint attribute_v_normal)
|
GLint attribute_v_coord, GLint attribute_v_normal)
|
||||||
{
|
{
|
||||||
GLuint vbo_coords, vbo_normals, ibo_elements;
|
GLuint vbo_coords = 0, vbo_normals = 0, ibo_elements = 0;
|
||||||
|
|
||||||
if (numVertices > 0 && attribute_v_coord != -1) {
|
if (numVertices > 0 && attribute_v_coord != -1) {
|
||||||
fghGenBuffers(1, &vbo_coords);
|
fghGenBuffers(1, &vbo_coords);
|
||||||
|
Reference in New Issue
Block a user