Pass GL caps and version to compiler.
This allows us to get rid of some of the reliance on storing the
current context client version in the Renderer. A subsequent
patch will allow us to remove the client version ugly hack.
BUG=angle:789
Change-Id: I139e0f66e1d39e5cd41a484c841a7101b1f29540
Reviewed-on: https://chromium-review.googlesource.com/227712
Reviewed-by: Brandon Jones <bajones@chromium.org>
Reviewed-by: Geoff Lang <geofflang@chromium.org>
Tested-by: Jamie Madill <jmadill@chromium.org>
diff --git a/src/libGLESv2/Program.h b/src/libGLESv2/Program.h
index 9b437d3..b92349e 100644
--- a/src/libGLESv2/Program.h
+++ b/src/libGLESv2/Program.h
@@ -29,6 +29,7 @@
namespace gl
{
struct Caps;
+struct Data;
class ResourceManager;
class Shader;
@@ -77,7 +78,7 @@
void bindAttributeLocation(GLuint index, const char *name);
- Error link(const Caps &caps);
+ Error link(const Data &data);
bool isLinked();
Error setProgramBinary(GLenum binaryFormat, const void *binary, GLsizei length);
ProgramBinary *getProgramBinary() const;