PsychError OpenGL

Hello,


I'm having some problems running the FDFDemo on a couple of my PCs. It works with no problems on my Windows 10 machine, however on my Windows 7 stimulus PC and Windows 7 work PC I run into the same error each time. I'm not sure how to solve the problem on these PCs, so I'd appreciate it if you could give me any tips. The error is below, please let me know what other information you need. 


Thanks,


Maria


INTERNAL PSYCHTOOLBOX ERROR

error:                Psycherror_OpenGL

general description:  OpenGL call returned an error

specific description: GL_INVALID_OPERATION

module name:          Screen

subfunction call:     MakeTexture

file name:            COMMON\SCREEN\PsychTextureSupport.c

function name:        PsychCreateTexture

line number:          166

Error using Screen

See error message printed above.


Error in moglFDF (line 1158)

    sampleTex = Screen('MakeTexture', ctx.parentWin, randomSamples, [], [], 2, 0, ctx.samplingShader);


Error in FDFDemo (line 318)

        fdf = moglFDF('Update', fdf);

 

 


It's almost certainly a graphics driver bug or a limitation of the gpu/driver on your Windows 7 machines. Upgrade the graphics drivers and hope for the best. What graphics card is this?

As a workaround, you could try to make PTB ignore the OpenGL error and continue execution, and hope stuff somehow still sort of works, by adding Screen('Preference','ConserveVRAM', 512) at the top of your script. This is described in "help ConserveVRAMSettings" as setting kPsychAvoidCPUGPUSync. This will disable almost all OpenGL error checking, so things may fail silently and you will display corrupted stimuli without noticing if you are unlucky.

-mario

XXXXXX---In PSYCHTOOLBOX@yahoogroups.com, <hjy4aqsyrr73two3jljdmojeetppm57xjtorfvre@...> wrote :

Hello,


I'm having some problems running the FDFDemo on a couple of my PCs. It works with no problems on my Windows 10 machine, however on my Windows 7 stimulus PC and Windows 7 work PC I run into the same error each time. I'm not sure how to solve the problem on these PCs, so I'd appreciate it if you could give me any tips. The error is below, please let me know what other information you need. 


Thanks,


Maria


INTERNAL PSYCHTOOLBOX ERROR

error:                Psycherror_OpenGL

general description:  OpenGL call returned an error

specific description: GL_INVALID_OPERATION

module name:          Screen

subfunction call:     MakeTexture

file name:            COMMON\SCREEN\PsychTextureSupport.c

function name:        PsychCreateTexture

line number:          166

Error using Screen

See error message printed above.


Error in moglFDF (line 1158)

    sampleTex = Screen('MakeTexture', ctx.parentWin, randomSamples, [], [], 2, 0, ctx.samplingShader);


Error in FDFDemo (line 318)

        fdf = moglFDF('Update', fdf);