现在的位置: 首页 > 综合 > 正文

nvoglnt.dll crash when running opengl application

2013年04月27日 ⁄ 综合 ⁄ 共 1149字 ⁄ 字号 评论关闭

--update 2009/03/22

最近意识到,nvoglnt.dll崩溃 很可能是由于程序的原因,比如启用了gl.glEnableClientState(GL.GL_TEXTURE_COORD_ARRAY);

但是后面的代码中却没有给textureCoordPointer赋值,这就可能会导致dll崩溃


因此,写代码时一定要double check下这一块

-----------------------------------------------------------------------------------------------------------------

机器显卡是NVIDIA 8600GT,跑JOGL的程序时,不定时会直接退出,报系统错误,java.exe崩溃,由nvoglnt.dll引起的,查了下资料,发现是因为Nvidia的opengl显卡驱动的问题,汗,再一次无语啊,opengl果然没地位。。。

 

后来尝试设置了一下JOGL创建时的兼容性,不启用硬件加速,把所有高级特性都禁用掉,居然OK了。。。

 

 

/**

     * Called from within initComponents().

     * hint: to customize the generated code choose 'Customize Code' in the contextmenu

     * of the selected UI Component you wish to cutomize in design mode.

     * @return Returns customized GLCapabilities.

     */

    public GLCapabilities createGLCapabilites() {

 

        GLCapabilities capabilities = new GLCapabilities();

        capabilities.setHardwareAccelerated(false);

        capabilities.setSampleBuffers(false);

 

 

 

        // try to enable 2x anti aliasing - should be supported on most hardware

        //capabilities.setNumSamples(2);

        //capabilities.setSampleBuffers(true);

 

        return capabilities;

    }

 

--------------------------------------------

汗,事实是并没有OK,崩溃问题还是会不定时出现。。。这样下去我宁肯使用开源的软件opengl渲染引擎了。。。

 

 

抱歉!评论已关闭.