mesa: remove unused gl_buffer_object::OnCard field
This commit is contained in:
@@ -389,7 +389,6 @@ _mesa_buffer_map( GLcontext *ctx, GLenum target, GLenum access,
|
|||||||
(void) ctx;
|
(void) ctx;
|
||||||
(void) target;
|
(void) target;
|
||||||
(void) access;
|
(void) access;
|
||||||
ASSERT(!bufObj->OnCard);
|
|
||||||
/* Just return a direct pointer to the data */
|
/* Just return a direct pointer to the data */
|
||||||
if (bufObj->Pointer) {
|
if (bufObj->Pointer) {
|
||||||
/* already mapped! */
|
/* already mapped! */
|
||||||
@@ -413,7 +412,6 @@ _mesa_buffer_unmap( GLcontext *ctx, GLenum target,
|
|||||||
{
|
{
|
||||||
(void) ctx;
|
(void) ctx;
|
||||||
(void) target;
|
(void) target;
|
||||||
ASSERT(!bufObj->OnCard);
|
|
||||||
/* XXX we might assert here that bufObj->Pointer is non-null */
|
/* XXX we might assert here that bufObj->Pointer is non-null */
|
||||||
bufObj->Pointer = NULL;
|
bufObj->Pointer = NULL;
|
||||||
return GL_TRUE;
|
return GL_TRUE;
|
||||||
|
@@ -1505,7 +1505,6 @@ struct gl_buffer_object
|
|||||||
GLsizeiptr Length; /**< mapped length */
|
GLsizeiptr Length; /**< mapped length */
|
||||||
GLsizeiptrARB Size; /**< Size of storage in bytes */
|
GLsizeiptrARB Size; /**< Size of storage in bytes */
|
||||||
GLubyte *Data; /**< Location of storage either in RAM or VRAM. */
|
GLubyte *Data; /**< Location of storage either in RAM or VRAM. */
|
||||||
GLboolean OnCard; /**< Is buffer in VRAM? (hardware drivers) */
|
|
||||||
GLboolean Written; /**< Ever written to? (for debugging) */
|
GLboolean Written; /**< Ever written to? (for debugging) */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user