p3/regal — pull request #26 by igor-c (2012-10-19 00:37:52+00:00)
Title: Support shared GL context data.

Without this change any information rembered for a texture or a vertex array
in one context will not be available in the other context, even if they're
supposed to share data. This issue made a texture created in one context
not renderable in another.

Note on text formatting: I noticed that newer CL's used 2-space indentation,
so I kept the same in the new code inside RegalInit.cpp. If needed,
I can reformat to whatever is considered the official style in Regal.

GenerateFragmentShaderSource now takes RFF similarly to GenerateVertexShaderSource.

Speaking about shared_ptr - we should find a way to support platforms other
than Linux and also make sure it works with newer versions of GCC.

Regal.h defines RegalSystemContext as int32_t, accordingly I tried
to unify RegalMakeCurrent and RegalInitContext to use RegalSystemContext
rather than PP_Resource. Please let me know if I should change it all back
to PP_Resource or redefine RegalSystemContext as PP_Resource.