<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - [SNB regression] Unigine-OilRush crash"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=76540#c39">Comment # 39</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - [SNB regression] Unigine-OilRush crash"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=76540">bug 76540</a>
              from <span class="vcard"><a class="email" href="mailto:chris@chris-wilson.co.uk" title="Chris Wilson <chris@chris-wilson.co.uk>"> <span class="fn">Chris Wilson</span></a>
</span></b>
        <pre>After patching (changing branches, or jumping between different checkouts)
Xorg, you must recompile the drivers.

However, to disable sRGB in Xorg-1.15, apply

diff --git a/glx/glxcmds.c b/glx/glxcmds.c
index 187e426..e8c1198 100644
--- a/glx/glxcmds.c
+++ b/glx/glxcmds.c
@@ -1006,7 +1006,7 @@ __glXDisp_GetVisualConfigs(__GLXclientState * cl, GLbyte
* pc)
         buf[p++] = GLX_SAMPLE_BUFFERS_SGIS;
         buf[p++] = modes->sampleBuffers;
         /* Add attribute only if its value is not default. */
-        if (modes->sRGBCapable != GL_FALSE) {
+        if (modes->sRGBCapable != GL_FALSE && 0) {
             buf[p++] = GLX_FRAMEBUFFER_SRGB_CAPABLE_EXT;
             buf[p++] = modes->sRGBCapable;
         }
@@ -1130,7 +1130,7 @@ DoGetFBConfigs(__GLXclientState * cl, unsigned screen)
                       modes->optimalPbufferHeight);
        }
         /* Add attribute only if its value is not default. */
-        if (modes->sRGBCapable != GL_FALSE) {
+        if (modes->sRGBCapable != GL_FALSE && 0) {
             WRITE_PAIR(GLX_FRAMEBUFFER_SRGB_CAPABLE_EXT, modes->sRGBCapable);
         }
         /* Pad the remaining place with zeroes, so that attributes count is
constant. */</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>