From 99683bd830b46737e83aa4adacfa0941c6e098bf Mon Sep 17 00:00:00 2001 From: Karl Schultz Date: Thu, 12 Sep 2002 17:05:55 +0000 Subject: Mark destroyed context as not current. (Frank Warmerdam) --- src/mesa/drivers/windows/wmesa.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/windows/wmesa.c b/src/mesa/drivers/windows/wmesa.c index 040dbd16da8..77c800f2b56 100644 --- a/src/mesa/drivers/windows/wmesa.c +++ b/src/mesa/drivers/windows/wmesa.c @@ -1,4 +1,4 @@ -/* $Id: wmesa.c,v 1.34 2002/08/28 18:26:38 kschultz Exp $ */ +/* $Id: wmesa.c,v 1.35 2002/09/12 17:05:55 kschultz Exp $ */ /* * Windows (Win32) device driver for Mesa 3.4 @@ -1404,6 +1404,9 @@ void WMesaDestroyContext( void ) if(parallelMachine) PRDestroyRenderBuffer(); #endif + + // Destroyed context no longer valid + WMesaMakeCurrent( NULL ); } -- cgit v1.2.3