PFTEX_SOURCE_FRAMEBUFFER

New Message Reply Date view Thread view Subject view Author view

Hansong Zhang (zhangh++at++cs.unc.edu)
Wed, 5 Jun 1996 15:59:26 -0400 (EDT)


Hello,

I want to read part the framebuffer into a texture. So I set
PFTEX_LOAD_SOURCE to PFTEX_SOURCE_FRAMEBUFFER and set
PFTEX_SUBLOAD_FORMAT, PFTEX_FAST_DEFINE to PF_ON. But when compiled
with GL, the program lock up the screen; when using OpenGL
it dumps core in bcopy(). I'm using RE2, Irix5.3. Any suggestions
on what could be wrong? Thanks much!

below is the texture def and exec stack on core-dumps.

      texture = new pfTexture;
      texture->setImage((unsigned int*)map, 1, w, h, 1);
* texture->setFormat(PFTEX_FAST_DEFINE, PF_ON);
* texture->setFormat(PFTEX_SUBLOAD_FORMAT, PF_ON);
* texture->setLoadMode(PFTEX_LOAD_SOURCE, PFTEX_SOURCE_FRAMEBUFFER);
      texture->setLoadOrigin(PFTEX_ORIGIN_SOURCE, 0, 0);
      texture->setLoadOrigin(PFTEX_ORIGIN_DEST, 0, 0);
      texture->setLoadSize(w, h);
      texture->format(); // dumps core here

If i remove the lines with "*" the texture works fine with its default
pattern in map (char array).

Stack:

   0 _bcopy(0x0, 0x100633a8, 0x40000, 0x100633a8)
        ["bcopy.s":137, 0xfac0ae0]
   1 CreateLevel(0x10063130, 0x0, 0x8041, 0x100633a8)
        ["../VENICE/ven_texture.c":3148, 0xdb341c0]
   2 __glvenlc_TexImage(0x2, 0xde1, 0x0, 0x8041)
        ["../VENICE/ven_texture.c":4536, 0xdb36f94]
   3 __glvenlc_TexImage2D(0xde1, 0x0, 0x8041, 0x200)
        ["../VENICE/ven_texture.c":4566, 0xdb371a0]
   4 pfTexture::pr_format(int,int)(0x10021c50, 0x100633a8, 0x7ffd,
        0x92) ["../../../lib/libpr/pfTexture.C":2669, 0x5e8c44ec]
   5 pfTexture::format(void)(0x0, 0x403d20, 0x40000, 0x100633a8)
        ["../../../lib/libpr/pfTexture.C":1897, 0x5e99054c]
   6 HOM::HOM(int,int,int,int)(this = 0x10021330, W = 512, H = 512, depth = 8, effDepth = 4)
   7 main()

Hansong

=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer.html
            Submissions: info-performer++at++sgi.com
        Admin. requests: info-performer-request++at++sgi.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:52:59 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.