I'm getting a domain error from
glClear GL_COLOR_BUFFER_BIT

cder'' reports 1 0

This is using the m beta on a linux machine where opengl
previously worked.  I believe my code is valid:

coclass'example' 
(coinsert[require)'jzopengl'

P=: 0 : 0
pc p;
xywh 0 0 50 50;cc c isigraph rightmove bottommove;
pas 6 6;pcenter;
rem form end;
 pshow;
)

create=:3 :0
 create_jzopengl_ f. ''
 wd P
)

p_run=: 3 : 0
 ''conew'example'
)

destroy=:3 :0
 destroy_jzopengl_ f. ''
 wd'pclose'
)

p_close=: destroy

p_c_size=: 3 : 0
 alloc f. glqwh''
 p_c_paint''
)

p_c_paint=: 3 : 0
 glClear GL_COLOR_BUFFER_BIT
 draw_keep f.''
)

p_run''


The error happens with the stack
p_c_paint
p_c_size
p_run

I don't know how to isolate this problem.

Any suggestions?

Thanks,

-- 
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to