http://bugs.freedesktop.org/show_bug.cgi?id=15296

           Summary: [mesa core FBO]
                    glGetFramebufferAttachmentParameterivEXT(cube map face)
                    should return 0 when attached texture is not a cubmap
                    texture
           Product: Mesa
           Version: unspecified
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Mesa core
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


Created an attachment (id=15592)
 --> (http://bugs.freedesktop.org/attachment.cgi?id=15592)
test case

System Environment:
--------------------------

--Architecture(32-bit,64-bit,compatiblity): all

--2D driver:
commit 645980596450ed21c3b8927410a6bfe38a0c55d1

--3D driver:
commit 3e0797f3b702a1363bf238eb4826385860346137

--Xserver:
commit b8ea9f2a25aad88aee77a68f8e20ac07276f0dab

--Drm
commit 562f95ea96f08e1d73a872dc87237614292c873a

--Kernel:
2.6.23.1


Bug detailed description:
-------------------------
According to OpenGL spec:
                "If <pname> is
                FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_EXT and the
                texture object named
                FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_EXT is a cube map
                texture, then <params> will contain the cube map face of
                the cubemap texture object which contains the attached
                image.  Otherwise <params> will contain the value zero."

glGetFramebufferAttachmentParameterivEXT(GL_FRAMEBUFFER_EXT,
GL_COLOR_ATTACHMENT0_EXT,GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_EXT,
&retVal); should return 0, when the attach texture is not a cube map texture.
there's the same issue with 3D texture.


Reproduce steps:
----------------
1. start X
2. compile and run attached test case


Current result:
----------------
it doesnt' work as expected.


Expected result:
----------------
glGetFramebufferAttachmentParameterivEXT(cube map face) should return 0 when
attached texture is not a cubmap texture


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to