瀏覽代碼

(WIN32)Use _glapi_get_context to get the context in buffer_size() instead

of the GET_CURRENT_CONTEXT macro.  The macro tries to use the glapi_Context
variable which needs to be imported from the MesaGL DLL, which is too
problematic to do at the moment.
tags/mesa_4_0_2
Karl Schultz 23 年之前
父節點
當前提交
4ad3511865
共有 1 個文件被更改,包括 7 次插入1 次删除
  1. 7
    1
      src/mesa/drivers/osmesa/osmesa.c

+ 7
- 1
src/mesa/drivers/osmesa/osmesa.c 查看文件

@@ -1,4 +1,4 @@
/* $Id: osmesa.c,v 1.71.2.3 2002/03/16 00:50:12 brianp Exp $ */
/* $Id: osmesa.c,v 1.71.2.4 2002/03/25 23:52:34 kschultz Exp $ */

/*
* Mesa 3-D graphics library
@@ -878,7 +878,13 @@ static void clear( GLcontext *ctx, GLbitfield mask, GLboolean all,

static void buffer_size( GLframebuffer *buffer, GLuint *width, GLuint *height )
{
#ifdef WIN32
/* Hack to get around problems with exporting glapi_Context from MesaGL
and importing into OSMesa. */
GLcontext *ctx = (GLcontext *) _glapi_get_context();
#else
GET_CURRENT_CONTEXT(ctx);
#endif
(void) buffer;
if (ctx) {
OSMesaContext osmesa = OSMESA_CONTEXT(ctx);

Loading…
取消
儲存