Skip to content

Commit

Permalink
libgui|GLState: Support for 4K+ resolutions
Browse files Browse the repository at this point in the history
Reserve more bits to store information about scissor and viewport.
  • Loading branch information
skyjake committed Dec 20, 2014
1 parent 37baf5c commit eb5c6ef
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions doomsday/libgui/src/graphics/glstate.cpp
Expand Up @@ -62,14 +62,14 @@ namespace internal
{ BlendOp, 2 },
{ ColorMask, 4 },
{ Scissor, 1 },
{ ScissorX, 12 }, // 12 bits == 4096 max
{ ScissorY, 12 },
{ ScissorWidth, 12 },
{ ScissorHeight, 12 },
{ ViewportX, 12 },
{ ViewportY, 12 },
{ ViewportWidth, 12 },
{ ViewportHeight, 12 }
{ ScissorX, 13 }, // 13 bits == 8192 max
{ ScissorY, 13 },
{ ScissorWidth, 13 },
{ ScissorHeight, 13 },
{ ViewportX, 13 },
{ ViewportY, 13 },
{ ViewportWidth, 13 },
{ ViewportHeight, 13 }
};
static BitField::Elements const glStateProperties(propSpecs, MAX_PROPERTIES);

Expand Down

0 comments on commit eb5c6ef

Please sign in to comment.