Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Reply-To: <nhv@cape.com>
From: "Norman Vine" <nhv@cape.com>
To: <cygwin@cygwin.com>
Subject: RE: Segmentation fault using OpenGL
Date: Fri, 21 Mar 2003 16:18:48 -0500
Message-ID: <EKEJIKAILPONGGENMBGAEEJLCOAA.nhv@cape.com>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
In-Reply-To: <3E7B7CB0.9050002@verizon.net>
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Importance: Normal
X-Virus-Scanned: Cape.Com VirusScan, no known virus found

Tron Thomas
> 
> I have written a Windows OpenGL program which I can successfully build 
> and run using both the Borland and Microsoft compilers.  When I try to 
> run the same program after building it with the Cygwin GCC compiler, I 
> get a segmentation fault.  I'm very puzzled by this as the program works 
> fine when built with other compilers.
> 
> Does anyone have experieince with Cygwin and OpenGL and might know what 
> could be causing this problem?  The fault occur when I call glTexImage2D 
> to create a 2 dimensional texture.

OpenGL works in Cygwin exactly the same as in any other system
so this is assuredly another problem

I suggest that you run your program under a debugger to see what
your problem is.  

Hint - I would start by examing the arguments passed into the glTexImage2d 
call that is failing

HTH

Norman

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

