mirror of
https://github.com/NoelFB/blah.git
synced 2025-06-29 19:25:26 +08:00
fixed mesh missing default stride calculation
This commit is contained in:
@ -1028,7 +1028,7 @@ namespace Blah
|
||||
return m_id;
|
||||
}
|
||||
|
||||
virtual void vertex_format(const VertexAttribute* attributes, int attribute_count, int stride = -1) override
|
||||
virtual void vertex_format_internal(const VertexAttribute* attributes, int attribute_count, int stride = -1) override
|
||||
{
|
||||
gl.BindVertexArray(m_id);
|
||||
{
|
||||
@ -1040,7 +1040,7 @@ namespace Blah
|
||||
gl.BindVertexArray(0);
|
||||
}
|
||||
|
||||
virtual void instance_format(const VertexAttribute* attributes, int attribute_count, int stride = -1) override
|
||||
virtual void instance_format_internal(const VertexAttribute* attributes, int attribute_count, int stride = -1) override
|
||||
{
|
||||
gl.BindVertexArray(m_id);
|
||||
{
|
||||
|
@ -29,12 +29,12 @@ using namespace Internal;
|
||||
|
||||
namespace
|
||||
{
|
||||
SDL_Window* window = nullptr;
|
||||
SDL_Joystick* joysticks[BLAH_MAX_CONTROLLERS];
|
||||
SDL_GameController* gamepads[BLAH_MAX_CONTROLLERS];
|
||||
char* basePath = nullptr;
|
||||
char* userPath = nullptr;
|
||||
bool displayed = false;
|
||||
SDL_Window* window = nullptr;
|
||||
SDL_Joystick* joysticks[BLAH_MAX_CONTROLLERS];
|
||||
SDL_GameController* gamepads[BLAH_MAX_CONTROLLERS];
|
||||
char* basePath = nullptr;
|
||||
char* userPath = nullptr;
|
||||
bool displayed = false;
|
||||
|
||||
void sdl_log(void* userdata, int category, SDL_LogPriority priority, const char* message)
|
||||
{
|
||||
|
Reference in New Issue
Block a user