A couple symbols are missing from the osmesa.def file.  On Windows,
this causes OSMesaGetProcAddress to be named "_osmesagetprocaddr...@4",
which breaks some of our code to dynamically load OpenGL.

The attached patch fixes the symbol names, verified via depends.exe.
It's against 7_7_branch but probably applies elsewhere.  If there's a
7.6.2 planned, could this get applied there as well?

Thanks,

-tom

From 170587484549958420d115904f74588be54792fc Mon Sep 17 00:00:00 2001
From: Tom Fogal <tfo...@alumni.unh.edu>
Date: Fri, 5 Feb 2010 11:45:03 -0700
Subject: [PATCH] Add OSMesaColorClamp and OSMesaGetProcAddress to symbol defs.

Without this patch, the two symbols get an underscore prepended
and an "@4" appended when compiling with VC8.
---
 src/mesa/drivers/osmesa/osmesa.def |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/mesa/drivers/osmesa/osmesa.def b/src/mesa/drivers/osmesa/osmesa.def
index 71e9687..06afab7 100644
--- a/src/mesa/drivers/osmesa/osmesa.def
+++ b/src/mesa/drivers/osmesa/osmesa.def
@@ -2,6 +2,7 @@
 VERSION 4.1
 
 EXPORTS
+	OSMesaColorClamp
 	OSMesaCreateContext
 	OSMesaCreateContextExt
 	OSMesaDestroyContext
@@ -11,3 +12,4 @@ EXPORTS
 	OSMesaGetIntegerv
 	OSMesaGetDepthBuffer
 	OSMesaGetColorBuffer
+	OSMesaGetProcAddress
-- 
1.6.5.1.msysgit.1

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to