|
|
#1 | |
|
Registered User
Join Date: Sep 2006
Posts: 4
|
I have problem with 64 bit NV drivers.
I've compiled same simple program on 32 & 64 bit plathform & get crash with 64 bit in libGL.so so it very simple program: #include <iostream.h> #include <iomanip.h> #include <GL/gl.h> using namespace std; #define PRINT(x) cout<<""<<setw(15)<<(x)<<" " #x "\n"<<flush void* test1(void*) { PRINT("Test1"); glGetError(); PRINT("Test2"); return (void*)NULL; }; int main() { void *res; pthread_t m_thread_handle; PRINT(glGetError()); pthread_create(&m_thread_handle,NULL,&test1,(void* )NULL); sleep(1); pthread_join(m_thread_handle,&res); PRINT(glGetError()); return 0; } // command time //g++ test.cpp -lGL -lpthread -o gltest; ./gltest |
|
|
|
|
|
|
#2 | |
|
NVIDIA Corporation
Join Date: Mar 2005
Posts: 2,487
|
You have to create a GLX context and make it current before you can use OpenGL functions.
|
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: Sep 2006
Posts: 4
|
Thanks, but
1.The code is working ok on 32 bit plathform 2.I've get the code after stripping full code with the same problem ![]() |
|
|
|
|
|
#4 | |
|
NVIDIA Corporation
Join Date: Mar 2005
Posts: 2,487
|
You still need to make a context current before you can use OpenGL. Attached is your code with some modifications to make it work.
Last edited by AaronP; 09-05-06 at 10:29 AM. Reason: Forgot to make a context current before the last glGetError() |
|
|
|
|
|
|
#5 |
|
Registered User
Join Date: Sep 2006
Posts: 4
|
Thank You very much - I going to incorporate the code.
![]() |
|
|
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| X Failed to load NVdriver | c00lr4c3r | NVIDIA Linux | 13 | 10-22-02 01:44 PM |
| Error messages... HELP!!!! | Imperito | NVIDIA Linux | 3 | 09-24-02 10:46 PM |
| GForce drivers installed...but dont work | tomfullery | NVIDIA Linux | 6 | 09-22-02 08:23 AM |
| Need help to get the X to work on my Acer TravelMate 630 | knchee | NVIDIA Linux | 16 | 09-19-02 10:16 PM |
| RH7.3 and nForce - can't find the module | dmw400 | NVIDIA Linux | 4 | 08-05-02 12:14 PM |