\r
// Draw\r
\r
+ /*\r
+ GL_TEXTURE0 are texture coordinates to the source material, what will be rendered with this call. These are always set to the whole thing.\r
+ GL_TEXTURE1 are texture coordinates to background- / key-material, that which will have to be taken in consideration when blending. These are set to the rectangle over which the source will be rendered\r
+ */\r
glBegin(GL_QUADS);\r
glMultiTexCoord2d(GL_TEXTURE0, 0.0, 0.0); glMultiTexCoord2d(GL_TEXTURE1, f_p[0] , f_p[1] ); glVertex2d( f_p[0] *2.0-1.0, f_p[1] *2.0-1.0);\r
glMultiTexCoord2d(GL_TEXTURE0, 1.0, 0.0); glMultiTexCoord2d(GL_TEXTURE1, (f_p[0]+f_s[0]), f_p[1] ); glVertex2d((f_p[0]+f_s[0])*2.0-1.0, f_p[1] *2.0-1.0);\r
transform.fill_translation[1] = y;\r
transform.fill_scale[0] = x_s;\r
transform.fill_scale[1] = y_s;\r
- transform.clip_translation[0] = x;\r
- transform.clip_translation[1] = y;\r
- transform.clip_scale[0] = x_s;\r
- transform.clip_scale[1] = y_s;\r
return transform;\r
}, duration, tween));\r
}\r
double y = boost::lexical_cast<double>(_parameters.at(2));\r
double x_s = boost::lexical_cast<double>(_parameters.at(3));\r
double y_s = boost::lexical_cast<double>(_parameters.at(4));\r
+ if(x_s < 0 || y_s < 0)\r
+ {\r
+ SetReplyString(L"403 MIXER ERROR\r\n");\r
+ return false;\r
+ }\r
\r
transforms.push_back(stage::transform_tuple_t(GetLayerIndex(), [=](frame_transform transform) -> frame_transform\r
{\r
size_t oldLength = pClientInfo->currentMessage_.length();\r
\r
if(pClientInfo->currentMessage_.capacity() < (oldLength + charCount))\r
- pClientInfo->currentMessage_.reserve(8192 * 4);\r
+ pClientInfo->currentMessage_.reserve(oldLength + 8192 * 4);\r
\r
pClientInfo->currentMessage_.append(pData, charCount);\r
\r