GL: Use pipeline cache

This commit is contained in:
vlj 2015-05-16 01:10:27 +02:00 committed by Vincent Lejeune
parent 145f411324
commit 2a7c65c019
8 changed files with 115 additions and 249 deletions

View file

@ -38,9 +38,11 @@ void GLProgram::Create(const u32 vp, const u32 fp)
Delete();
id = glCreateProgram();
GLuint res = glGetError();
glAttachShader(id, vp);
res = glGetError();
glAttachShader(id, fp);
res = glGetError();
glLinkProgram(id);