nvoglnt.dll crash when running opengl application

--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渲染引擎了。。。

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值