mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-09 17:49:01 +00:00
OGL/VertexManager: Make vertex and index buffer handles private
These are only ever read, but not written to outside of the VertexManager class.
This commit is contained in:
parent
657195fad5
commit
2237a6a04c
4 changed files with 18 additions and 6 deletions
|
@ -37,9 +37,8 @@ public:
|
|||
void CreateDeviceObjects() override;
|
||||
void DestroyDeviceObjects() override;
|
||||
|
||||
// NativeVertexFormat use this
|
||||
GLuint m_vertex_buffers;
|
||||
GLuint m_index_buffers;
|
||||
GLuint GetVertexBufferHandle() const;
|
||||
GLuint GetIndexBufferHandle() const;
|
||||
|
||||
protected:
|
||||
void ResetBuffer(u32 stride) override;
|
||||
|
@ -49,6 +48,9 @@ private:
|
|||
void vFlush() override;
|
||||
void PrepareDrawBuffers(u32 stride);
|
||||
|
||||
GLuint m_vertex_buffers;
|
||||
GLuint m_index_buffers;
|
||||
|
||||
// Alternative buffers in CPU memory for primatives we are going to discard.
|
||||
std::vector<u8> m_cpu_v_buffer;
|
||||
std::vector<u16> m_cpu_i_buffer;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue