<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
diff --git a/cogl/driver/gles/cogl-texture-driver-gles.c b/cogl/driver/gles/cogl-texture-driver-gles.c<br>
index 2bc596b..62a65ee 100644<br>
--- a/cogl/driver/gles/cogl-texture-driver-gles.c<br>
+++ b/cogl/driver/gles/cogl-texture-driver-gles.c<br>
@@ -407,6 +407,8 @@ _cogl_texture_driver_pixel_format_to_gl (CoglPixelFormat  format,<br>
   GLenum glformat = 0;<br>
   GLenum gltype;<br>
<br>
+  _COGL_GET_CONTEXT (ctx, 0);<br>
+<br>
   required_format = format;<br></blockquote><div><br></div><div>depending on how much hassle it would be to change, I&#39;ve been trying to avoid adding uses of _COGL_GET_CONTEXT in new code since the ongoing goal is to remove the dependence within cogl on a global context.</div>
<div><br></div><div>no biggie if it would be too awkward to change at this point though.</div><div><br></div><div>other than that the patch looks good to land to me.</div><div><br></div><div>regards,</div><div>- Robert </div>
</div>