diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2012-12-05 12:05:33 -0500 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2012-12-05 12:05:33 -0500 |
commit | 377544c8b40f2d35ba7b29252ed471d19bb983e5 (patch) | |
tree | 0fb68b6d7f9ce04b7126d08365f0f6cb483e57f7 /indra/newview/pipeline.h | |
parent | cc2c426e88bfff91c1da1704d5fdedee6e7e3dbb (diff) | |
parent | 5a938e3a1c8582d6bfe6df2aa195afcdcafb355a (diff) |
merge changes for MAINT-1955, MAINT-1958
Diffstat (limited to 'indra/newview/pipeline.h')
-rw-r--r-- | indra/newview/pipeline.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/indra/newview/pipeline.h b/indra/newview/pipeline.h index 7a0ca86231..36abeca295 100644 --- a/indra/newview/pipeline.h +++ b/indra/newview/pipeline.h @@ -119,8 +119,25 @@ public: void createGLBuffers(); void createLUTBuffers(); - void allocateScreenBuffer(U32 resX, U32 resY); + //allocate the largest screen buffer possible up to resX, resY + //returns true if full size buffer allocated, false if some other size is allocated + bool allocateScreenBuffer(U32 resX, U32 resY); + + typedef enum { + FBO_SUCCESS_FULLRES = 0, + FBO_SUCCESS_LOWRES, + FBO_FAILURE + } eFBOStatus; + +private: + //implementation of above, wrapped for easy error handling + eFBOStatus doAllocateScreenBuffer(U32 resX, U32 resY); +public: + + //attempt to allocate screen buffers at resX, resY + //returns true if allocation successful, false otherwise bool allocateScreenBuffer(U32 resX, U32 resY, U32 samples); + void allocatePhysicsBuffer(); void resetVertexBuffers(LLDrawable* drawable); |