Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/arrays.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,8 @@ OgxArrayReader *_ogx_array_add(uint8_t attribute, const OgxVertexAttribArray *ar
/* No conversions needed, just dump the data from the array directly
* into the GX pipe. */
if (array->vbo) {
debug(OGX_LOG_VBO, "Using VBO %d for attr %d type %d, n=%d",
array->vbo, info.format.attribute, info.format.size, array->size);
new (reader) DirectVboReader(array->vbo, info.format, data, stride);
return reader;
}
Expand Down
1 change: 1 addition & 0 deletions src/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ static const struct {
{ "texture", OGX_LOG_TEXTURE },
{ "stencil", OGX_LOG_STENCIL },
{ "shader", OGX_LOG_SHADER },
{ "vbo", OGX_LOG_VBO },
{ NULL, 0 },
};

Expand Down
1 change: 1 addition & 0 deletions src/debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ typedef enum {
OGX_LOG_STENCIL = 1 << 4,
OGX_LOG_CLIPPING = 1 << 5,
OGX_LOG_SHADER = 1 << 6,
OGX_LOG_VBO = 1 << 7,
} OgxLogMask;

extern OgxLogMask _ogx_log_mask;
Expand Down
Loading