Rev 4358 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4358 | Rev 5063 | ||
---|---|---|---|
Line 629... | Line 629... | ||
629 | if (attribs->flags & ST_CONTEXT_FLAG_DEBUG) |
629 | if (attribs->flags & ST_CONTEXT_FLAG_DEBUG) |
630 | st->ctx->Const.ContextFlags |= GL_CONTEXT_FLAG_DEBUG_BIT; |
630 | st->ctx->Const.ContextFlags |= GL_CONTEXT_FLAG_DEBUG_BIT; |
631 | if (attribs->flags & ST_CONTEXT_FLAG_FORWARD_COMPATIBLE) |
631 | if (attribs->flags & ST_CONTEXT_FLAG_FORWARD_COMPATIBLE) |
632 | st->ctx->Const.ContextFlags |= GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT; |
632 | st->ctx->Const.ContextFlags |= GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT; |
Line -... | Line 633... | ||
- | 633 | ||
633 | 634 | #if 0 |
|
634 | /* need to perform version check */ |
635 | /* need to perform version check */ |
635 | if (attribs->major > 1 || attribs->minor > 0) { |
636 | if (attribs->major > 1 || attribs->minor > 0) { |
636 | /* Is the actual version less than the requested version? |
637 | /* Is the actual version less than the requested version? |
637 | */ |
638 | */ |
638 | if (st->ctx->Version < attribs->major * 10 + attribs->minor) { |
639 | if (st->ctx->Version < attribs->major * 10 + attribs->minor) { |
639 | *error = ST_CONTEXT_ERROR_BAD_VERSION; |
640 | *error = ST_CONTEXT_ERROR_BAD_VERSION; |
640 | st_destroy_context(st); |
641 | st_destroy_context(st); |
641 | return NULL; |
642 | return NULL; |
642 | } |
643 | } |
- | 644 | } |
|
Line 643... | Line 645... | ||
643 | } |
645 | #endif |
644 | 646 | ||
Line 645... | Line 647... | ||
645 | st->invalidate_on_gl_viewport = |
647 | st->invalidate_on_gl_viewport = |