Results 1 to 3 of 3

Thread: Error when using eglGetDisplay

  1. #1
    Newbie Newbie
    Join Date
    Jul 2014
    Posts
    2

    Error when using eglGetDisplay

    Hi

    In my application I am using eglGetDisplay(GetDC(hWnd)); (for windows and eglGetDisplay((EGLNativeDisplayType)x_display); in linux) actually this function is called from esCreateWindow() of esutils (from OpenGL-ES book link) which I am using. The problem I am facing is the window is created (GetDC(hwnd) and x_display are not NULL) but when eglGetDisplay is called in CreateEGLContext() the application come out (both in windows and linux) with access violation error. Why is this happening is it any thing to do with my graphics driver. Someone please help me

    Thanks & regards
    Arun

  2. #2
    Senior Member Regular Contributor
    Join Date
    May 2008
    Posts
    104
    Typically a good way to start working with GLES on a new platforms is to look for some sample applications, then you're free to make any modifications to something that's should be functional.

  3. #3
    Newbie Newbie
    Join Date
    Jul 2014
    Posts
    2
    Hi jpilon

    The code is a sample application from OpenGL ES 2.0 Programming guide. The EGL library is downloaded from the book website.
    If you can show any working example it would be very helpful.

    Arun

Similar Threads

  1. Shader Compile Error: ERROR: 0:1: '' : syntax error #version
    By Blakeasd in forum OpenGL: Basic Coding
    Replies: 12
    Last Post: 07-25-2013, 07:35 PM
  2. Unable to use eglGetDisplay
    By scottrick49 in forum OpenGL ES
    Replies: 0
    Last Post: 07-08-2009, 02:55 PM
  3. eglGetDisplay alway return NULL
    By Shanchengliang in forum OpenGL ES
    Replies: 1
    Last Post: 01-28-2008, 04:39 AM
  4. Replies: 1
    Last Post: 09-24-2007, 04:02 AM
  5. Replies: 3
    Last Post: 02-07-2003, 05:06 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean