GPUShader: GL backend isolation
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
#include "gl_batch.hh"
|
||||
#include "gl_context.hh"
|
||||
#include "gl_drawlist.hh"
|
||||
#include "gl_shader.hh"
|
||||
|
||||
namespace blender {
|
||||
namespace gpu {
|
||||
@@ -54,6 +55,11 @@ class GLBackend : public GPUBackend {
|
||||
return new GLDrawList(list_length);
|
||||
};
|
||||
|
||||
Shader *shader_alloc(const char *name)
|
||||
{
|
||||
return new GLShader(name);
|
||||
};
|
||||
|
||||
/* TODO remove */
|
||||
void buf_free(GLuint buf_id);
|
||||
void tex_free(GLuint tex_id);
|
||||
|
||||
Reference in New Issue
Block a user