<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML - wst\0119pnie sformatowany Znak";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTML-wstpniesformatowanyZnak
        {mso-style-name:"HTML - wst\0119pnie sformatowany Znak";
        mso-style-priority:99;
        mso-style-link:"HTML - wst\0119pnie sformatowany";
        font-family:"Courier New";}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style></head><body lang=PL link=blue vlink="#954F72"><div class=WordSection1><p><span lang=EN-US>Hi! <o:p></o:p></span></p><p><span lang=EN-US>I have build mesa 11.0.2 with scnons using this configuration: scons  openmp=yes MSVC_VERSION=12.0. I would like to use off-screen rendering with osmesa. </span>A<span lang=EN-US>fter creating context and making it current with:<o:p></o:p></span></p><p><span lang=EN-US><o:p> </o:p></span></p><p><span lang=EN-US>ctx = OSMesaCreateContextExt(OSMESA_RGBA, 16, 0, 0, NULL);<o:p></o:p></span></p><p><span lang=EN-US>OSMesaMakeCurrent(ctx, buffer, GL_UNSIGNED_BYTE, Width, Height);<o:p></o:p></span></p><p><span lang=EN-US><o:p> </o:p></span></p><p>i<span lang=EN-US>t seems that it is not being created: glGetIntegerv(_ functions return arbitrary values and glGetString(GL_VERSION),<o:p></o:p></span></p><p><span lang=EN-US>glGetString(GL_RENDER) and glGetString(GL_VENDOR) returns null.<o:p></o:p></span></p><p><span lang=EN-US><o:p> </o:p></span></p><p><span lang=EN-US>I’m also quite sure that osmesa.lib and opengl32.lib are linked properly. While displaying linker status I get this information: <o:p></o:p></span></p><p><span lang=EN-US><o:p> </o:p></span></p><p><span lang=EN-US>1>      Searching C:\..\mesa-11.0.2\build\windows-x86_64-debug\gallium\targets\osmesa\osmesa.lib:<o:p></o:p></span></p><p><span lang=EN-US>1>      Searching C:\..\mesa-11.0.2\build\windows-x86_64-debug\gallium\targets\libgl-gdi\opengl32.lib:<o:p></o:p></span></p><p><span lang=EN-US><o:p> </o:p></span></p><p><span lang=EN-US>I would be gretful for help. <o:p></o:p></span></p><p><span lang=EN-US><o:p> </o:p></span></p><p><span lang=EN-US>Best regards,<o:p></o:p></span></p><p><span lang=EN-US>Jacek Blumenfeld.<o:p></o:p></span></p></div></body></html>